ESA JPIP server  0.1
args_parser.h
Go to the documentation of this file.
1 #ifndef _ARGS_PARSER_H_
2 #define _ARGS_PARSER_H_
3 
4 
5 #include "app_info.h"
6 #include "app_config.h"
7 
8 
14 {
15 private:
18 
19 public:
25  ArgsParser(AppConfig& _cfg, AppInfo& _app_info) : cfg(_cfg), app_info(_app_info)
26  {
27  }
28 
35  bool Parse(int argc, char **argv);
36 };
37 
38 
39 #endif /* _ARGS_PARSER_H_ */
bool Parse(int argc, char **argv)
Parses and handles the application command line parameters.
Definition: args_parser.cc:22
ArgsParser(AppConfig &_cfg, AppInfo &_app_info)
Initializes the object.
Definition: args_parser.h:25
AppConfig & cfg
Application configuration.
Definition: args_parser.h:16
Contains the run-time information of the application.
Definition: app_info.h:21
Contains the configuration parameters of the application.
Definition: app_config.h:18
AppInfo & app_info
Application run-time information.
Definition: args_parser.h:17
Class that allows to parse and handle the application command line parameters.
Definition: args_parser.h:13