Changeset 2057
- Timestamp:
- Sep 11, 2009, 2:11:19 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/commandline_test.cc
r2049 r2057 27 27 #include "yat/utility/OptionArg.h" 28 28 #include "yat/utility/OptionFile.h" 29 #include "yat/utility/OptionOutFile.h"30 29 #include "yat/utility/OptionHelp.h" 31 30 #include "yat/utility/OptionSwitch.h" … … 52 51 int main(int argc, char* argv[]) 53 52 { 54 55 53 yat::test::Suite suite(argc, argv); 56 54 … … 525 523 bool test_file2(yat::test::Suite& suite) 526 524 { 527 suite.err() << "Testing Option OutFile... ";525 suite.err() << "Testing OptionFile in write-protected directory... "; 528 526 529 527 if (yat::test::run_as_root()) { … … 559 557 bool ok=true; 560 558 CommandLine cmd; 561 Option OutFile out(cmd, "o,out", "output to file");559 OptionFile out(cmd, "o,out", "output to file", false, false, "w"); 562 560 OptionSwitch help(cmd, "h,help", "display this help and exit"); 563 561 -
trunk/yat/utility/OptionInFile.h
r1797 r2057 23 23 */ 24 24 25 #include "deprecate.h" 25 26 #include "OptionFile.h" 26 27 … … 35 36 /** 36 37 \brief Class for file related options 38 39 \deprecated Provided for backward compatibility with the 0.5 40 API. Use OptionFile and StreamRedirect instead (see CommandLine 41 for example code). 37 42 */ 38 43 class OptionInFile : public OptionFile … … 66 71 std::ifstream* is_; 67 72 68 } ;73 } YAT_DEPRECATE; 69 74 70 75 }}} // of namespace utility, yat, and theplu -
trunk/yat/utility/OptionOutFile.h
r1805 r2057 24 24 */ 25 25 26 #include "deprecate.h" 26 27 #include "OptionFile.h" 27 28 … … 36 37 /** 37 38 \brief Class for file related options 39 40 \deprecated Provided for backward compatibility with the 0.5 41 API. Use OptionFile and StreamRedirect instead (see CommandLine 42 for example code). 38 43 */ 39 44 class OptionOutFile : public OptionFile … … 51 56 */ 52 57 OptionOutFile(CommandLine& cmd, std::string name, std::string desc, 53 bool required=false) ;58 bool required=false) YAT_DEPRECATE; 54 59 55 60 /**
Note: See TracChangeset
for help on using the changeset viewer.