Medial Code Documentation
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Protected Member Functions
medial::io::ProgramArgs_base Class Reference

A basic class wrapper to parse command args has default "h", "help", "debug" and "base_config" for reading all arguments from file and prinring help. More...

#include <MedUtils.h>

Inheritance diagram for medial::io::ProgramArgs_base:
ProgramArgs ProgramArgs

Public Member Functions

virtual int parse_parameters (int argc, char *argv[])
 the main function to parse the command arguments
 

Data Fields

bool debug
 a debug flag for verbose printing. will be init from command args
 
po::variables_map vm
 
string app_logo
 the application logo/name
 

Protected Member Functions

void init (po::options_description &prg_options, const string &app_l="")
 an init function
 
 ProgramArgs_base ()
 the ctor of base class
 

Detailed Description

A basic class wrapper to parse command args has default "h", "help", "debug" and "base_config" for reading all arguments from file and prinring help.

You just need to implement the Ctor of inheritence class and call init function to use this class. you may also override post_process hook for setting some variable after all arguments were set by the program_options. to use in main call "parse_parameters" function

Field Documentation

◆ app_logo

string medial::io::ProgramArgs_base::app_logo
Initial value:
= "\
## ## ######## ######## #### ### ## \n\
### ### ## ## ## ## ## ## ## \n\
#### #### ## ## ## ## ## ## ## \n\
## ### ## ###### ## ## ## ## ## ## \n\
## ## ## ## ## ## ######### ## \n\
## ## ## ## ## ## ## ## ## \n\
## ## ######## ######## #### ## ## ######## "

the application logo/name


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