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:

LogLevel: LOG_ERR, LOG_DEBUG, LOG_DEBUG_STACK, LOG_DEBUG_HB
Constructor Summary
RtspCommandLine(const int argc, const char * * argv, const char * applicationUsage)
          constructor

Destructor Summary
~RtspCommandLine()
          destructor

Method Summary
 const boolgetBool(const string & cmdLineOption)
          get a bool argument based on a name
 const intgetInt(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

Constructor Detail

RtspCommandLine

public RtspCommandLine(const int argc, const char * * argv, const char * applicationUsage)
constructor
Method Detail

~RtspCommandLine

public ~RtspCommandLine()
destructor
Method Detail

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