MythTV  master
mythfilerecorder_commandlineparser.cpp
Go to the documentation of this file.
1 #include <QString>
2 
5 
9 
11 {
12  return "MythFilelRecorder's allow a go-between app to interface "
13  "with a recording device before the data is processed by mythbackend.";
14 }
15 
17 {
18  allowArgs();
19  addHelp();
21  addVersion();
22  addLogging();
23 
24  addInFile();
25 
26  add("--inputid", "inputid", "", "MythTV input this app is attached to.", "")
27  ->SetGroup("ExternalRecorder");
28 
29  add(QStringList{"--noloop"},
30  "noloop", false,
31  "Don't loop input back to beginning on EOF.", "");
32 
33  add(QStringList{"--data-rate"},
34  "data_rate", 188*50000,
35  "Rate at which to read data from the file.", "");
36 }
MythFileRecorderCommandLineParser::GetHelpHeader
QString GetHelpHeader(void) const override
Definition: mythfilerecorder_commandlineparser.cpp:10
MythFileRecorderCommandLineParser::LoadArguments
void LoadArguments(void) override
Definition: mythfilerecorder_commandlineparser.cpp:16
MythCommandLineParser
Parent class for defining application command line parsers.
Definition: mythcommandlineparser.h:116
MythCommandLineParser::addVersion
void addVersion(void)
Canned argument definition for –version.
Definition: mythcommandlineparser.cpp:2552
MythCommandLineParser::addLogging
void addLogging(const QString &defaultVerbosity="general", LogLevel_t defaultLogLevel=LOG_INFO)
Canned argument definition for all logging options, including –verbose, –logpath, –quiet,...
Definition: mythcommandlineparser.cpp:2656
MythCommandLineParser::add
CommandLineArg * add(const QString &arg, const QString &name, bool def, QString help, QString longhelp)
Definition: mythcommandlineparser.cpp:1770
mythfilerecorder_commandlineparser.h
MYTH_APPNAME_MYTHAVTEST
static constexpr const char * MYTH_APPNAME_MYTHAVTEST
Definition: mythcorecontext.h:31
MythCommandLineParser::allowArgs
void allowArgs(bool allow=true)
Specify that parser should allow and collect values provided independent of any keyword.
Definition: mythcommandlineparser.cpp:2480
mythcorecontext.h
MythCommandLineParser::addHelp
void addHelp(void)
Canned argument definition for –help.
Definition: mythcommandlineparser.cpp:2539
CommandLineArg::SetGroup
CommandLineArg * SetGroup(const QString &group)
Definition: mythcommandlineparser.h:30
MythCommandLineParser::addSettingsOverride
void addSettingsOverride(void)
Canned argument definition for –override-setting and –override-settings-file.
Definition: mythcommandlineparser.cpp:2603
MythFileRecorderCommandLineParser::MythFileRecorderCommandLineParser
MythFileRecorderCommandLineParser()
Definition: mythfilerecorder_commandlineparser.cpp:6
MythCommandLineParser::addInFile
void addInFile(bool addOutFile=false)
Canned argument definition for –infile and –outfile.
Definition: mythcommandlineparser.cpp:2745