Changeset 646 for branches/replacing_gnuplot/bin/Parameter.h
- Timestamp:
- Jun 4, 2008, 12:05:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/replacing_gnuplot/bin/Parameter.h
r540 r646 26 26 */ 27 27 28 #include "Option.h" 29 28 30 #include <map> 29 31 #include <string> … … 37 39 Parameter( int argc, char *argv[]); 38 40 std::string config_file(void) const; 39 inline bool copyright(void) const { return copyright_ ; }41 inline bool copyright(void) const { return copyright_.value(); } 40 42 /// @todo 41 inline bool force(void) const { return force_; } 42 inline bool generate_config(void) const { return generate_config_; } 43 inline bool ignore_cache(void) const { return ignore_cache_; } 44 inline bool report(void) const { return report_; } 45 inline bool revisions(void) const { return revisions_; } 43 inline bool force(void) const { return force_.value(); } 44 inline bool generate_config(void) const { return generate_config_.value(); } 45 // Until we fix caching (#313) ignore caching 46 //inline bool ignore_cache(void) const { return ignore_cache_.value(); } 47 inline bool ignore_cache(void) const { return true; } 48 inline bool report(void) const { return report_.value(); } 49 inline bool revisions(void) const { return revisions_.value(); } 46 50 /// @return absolute path to root directory 47 inline const std::string& root(void) const { return root_; } 51 inline const std::string& root(void) const { return root_.value(); } 52 /// @return absolute path to root node 53 inline const std::string& root_node(void) const {return root_node_.value();} 48 54 /// @return absolute path to target directory 49 inline const std::string& targetdir(void) const { return targetdir_; } 50 inline bool verbose(void) const { return verbose_; } 55 inline const std::string& targetdir(void) const 56 { return targetdir_.value(); } 57 inline bool verbose(void) const { return verbose_.value(); } 51 58 52 59 private: 53 60 void analyse(void); 54 void defaults(void);55 void help(void);61 void help(void) const; 62 void missing_argument(std::string opt) const; 56 63 void version(bool=false) const; 57 64 58 std::stringconfig_file_;59 boolcopyright_;60 boolforce_;61 boolgenerate_config_;62 boolignore_cache_;63 boolreport_;64 boolrevisions_;65 std::stringroot_;66 std::string targetdir_;67 bool verbose_;68 bool version_;65 Option<std::string> config_file_; 66 Option<bool> copyright_; 67 Option<bool> force_; 68 Option<bool> generate_config_; 69 Option<bool> ignore_cache_; 70 Option<bool> report_; 71 Option<bool> revisions_; 72 Option<std::string> root_; 73 Option<std::string> root_node_; 74 Option<std::string> targetdir_; 75 Option<bool> verbose_; 69 76 }; 70 77
Note: See TracChangeset
for help on using the changeset viewer.