Changeset 10296 for trunk/FACT++/src/Configuration.h
- Timestamp:
- 04/07/11 10:10:33 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/Configuration.h
r10220 r10296 45 45 46 46 /// Pointer to the mapper function for environment variables 47 boost::function1<std::string, std::string> fNameMapper; 47 boost::function<std::string(std::string)> fNameMapper; 48 boost::function<void()> fPrintUsage; 48 49 49 50 /// Helper function which return the max of the two arguments in the first argument … … 58 59 /// Print a list of all unkown options within the given vector 59 60 void PrintUnknown(std::vector<std::string> &vec, int steps=1); 61 62 virtual void PrintUsage() const { } 60 63 61 64 public: … … 81 84 void SetArgumentPositions(const po::positional_options_description &desc); 82 85 83 void SetNameMapper(const boost::function 1<std::string, std::string> &func);86 void SetNameMapper(const boost::function<std::string(std::string)> &func); 84 87 void SetNameMapper(); 88 89 void SetPrintUsage(const boost::function<void(void)> &func); 90 void SetPrintUsage(); 85 91 86 92 void AddEnv(const std::string &conf, const std::string &env) … … 95 101 // Process command line arguments 96 102 const po::variables_map &Parse(int argc, char **argv); 103 104 bool HasVersion() const 105 { 106 return Has("version"); 107 } 97 108 98 109 bool HasHelp() const
Note:
See TracChangeset
for help on using the changeset viewer.