ESA JPIP server  0.1
ArgsParser Class Reference

Class that allows to parse and handle the application command line parameters. More...

#include <args_parser.h>

Collaboration diagram for ArgsParser:

Public Member Functions

 ArgsParser (AppConfig &_cfg, AppInfo &_app_info)
 Initializes the object. More...
 
bool Parse (int argc, char **argv)
 Parses and handles the application command line parameters. More...
 

Private Attributes

AppConfigcfg
 Application configuration. More...
 
AppInfoapp_info
 Application run-time information. More...
 

Detailed Description

Class that allows to parse and handle the application command line parameters.

Constructor & Destructor Documentation

ArgsParser::ArgsParser ( AppConfig _cfg,
AppInfo _app_info 
)
inline

Initializes the object.

Parameters
_cfgApplication configuration.
_app_infoApplication run-time information.

Member Function Documentation

bool ArgsParser::Parse ( int  argc,
char **  argv 
)

Parses and handles the application command line parameters.

Parameters
argcNumber of parameters.
argvCommand line parameters.
Returns
true if successful.

Here is the call graph for this function:

Member Data Documentation

AppInfo& ArgsParser::app_info
private

Application run-time information.

AppConfig& ArgsParser::cfg
private

Application configuration.


The documentation for this class was generated from the following files: