Changes in src/CommandLineParser.hpp [97ebf8:7e6b00]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/CommandLineParser.hpp
r97ebf8 r7e6b00 15 15 #include "Patterns/Singleton.hpp" 16 16 17 #include <list> 17 18 18 19 class CommandLineParser : public Singleton<CommandLineParser> { … … 21 22 22 23 // Parses the command line arguments in CommandLineParser::**argv with currently known options. 23 void Run(int _argc, char **_argv );24 void Run(int _argc, char **_argv, std::map <std::string, std::string> &ShortFormToActionMap); 24 25 25 26 // Checks whether there have been any commands on the command line. … … 40 41 po::variables_map vm; 41 42 43 // private sequence of actions as they appeared on the command line 44 std::list<std::string> SequenceOfActions; 45 42 46 private: 43 47 // private constructor and destructor … … 57 61 void Parse(); 58 62 63 // as boost's program_options does not care about of order of appearance but we do for actions, 64 // we have to have a list and a function to obtain it. 65 void scanforSequenceOfArguments(std::map <std::string, std::string> &ShortFormToActionMap); 66 59 67 // argument counter and array passed on from main() 60 68 int argc;
Note:
See TracChangeset
for help on using the changeset viewer.