Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CommandLineParser.hpp

    r97ebf8 r7e6b00  
    1515#include "Patterns/Singleton.hpp"
    1616
     17#include <list>
    1718
    1819class CommandLineParser : public Singleton<CommandLineParser> {
     
    2122
    2223  // 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);
    2425
    2526  // Checks whether there have been any commands on the command line.
     
    4041  po::variables_map vm;
    4142
     43  // private sequence of actions as they appeared on the command line
     44  std::list<std::string> SequenceOfActions;
     45
    4246private:
    4347  // private constructor and destructor
     
    5761  void Parse();
    5862
     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
    5967  // argument counter and array passed on from main()
    6068  int argc;
Note: See TracChangeset for help on using the changeset viewer.