rtspserver
Class RtspCommandLine
- class RtspCommandLine
Parses and syntax checks the command line arguments and allows other
classes to access those values.
Default usage: [-d] [-v[log-level]] [-f[config-file]]
Valid access values and their default values:
- CfgFile (mediaServer.cfg)
- LogLevel* (LOG_WARNING)
- Daemon (false)
LogLevel: LOG_ERR, LOG_DEBUG, LOG_DEBUG_STACK, LOG_DEBUG_HB
Constructor Summary |
RtspCommandLine(const int argc, const char * * argv, const char * applicationUsage) constructor |
Method Summary |
const bool | getBool(const string & cmdLineOption) get a bool argument based on a name |
const int | getInt(const string & cmdLineOption) get a int argument based on a name |
const string & | getString(const string & cmdLineOption) get a string argument based on a name |
RtspCommandLine
public RtspCommandLine(const int argc, const char * * argv, const char * applicationUsage)
- constructor
~RtspCommandLine
public ~RtspCommandLine()
- destructor
getBool
public const bool getBool(const string & cmdLineOption)
- get a bool argument based on a name
getInt
public const int getInt(const string & cmdLineOption)
- get a int argument based on a name
getString
public const string & getString(const string & cmdLineOption)
- get a string argument based on a name