Changeset 625 for trunk/bin/Parameter.h
- Timestamp:
- Apr 24, 2008, 12:44:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/Parameter.h
r540 r625 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 inline bool ignore_cache(void) const { return ignore_cache_.value(); } 46 inline bool report(void) const { return report_.value(); } 47 inline bool revisions(void) const { return revisions_.value(); } 46 48 /// @return absolute path to root directory 47 inline const std::string& root(void) const { return root_ ; }49 inline const std::string& root(void) const { return root_.value(); } 48 50 /// @return absolute path to target directory 49 inline const std::string& targetdir(void) const { return targetdir_; } 50 inline bool verbose(void) const { return verbose_; } 51 inline const std::string& targetdir(void) const 52 { return targetdir_.value(); } 53 inline bool verbose(void) const { return verbose_.value(); } 51 54 52 55 private: 53 56 void analyse(void); 54 void defaults(void); 55 void help(void); 57 void help(void) const; 56 58 void version(bool=false) const; 57 59 58 std::string config_file_; 59 bool copyright_; 60 bool force_; 61 bool generate_config_; 62 bool ignore_cache_; 63 bool report_; 64 bool revisions_; 65 std::string root_; 66 std::string targetdir_; 67 bool verbose_; 68 bool version_; 60 Option<std::string> config_file_; 61 Option<bool> copyright_; 62 Option<bool> force_; 63 Option<bool> generate_config_; 64 Option<bool> ignore_cache_; 65 Option<bool> report_; 66 Option<bool> revisions_; 67 Option<std::string> root_; 68 Option<std::string> targetdir_; 69 Option<bool> verbose_; 69 70 }; 70 71
Note: See TracChangeset
for help on using the changeset viewer.