Changeset 1396
- Timestamp:
- Aug 5, 2008, 9:28:40 PM (15 years ago)
- Location:
- branches/0.4-stable/yat
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/0.4-stable/yat/classifier/NBC.cc
r1392 r1396 33 33 #include <cassert> 34 34 #include <cmath> 35 #include <limits> 35 36 #include <stdexcept> 36 37 #include <vector> -
branches/0.4-stable/yat/utility/CommandLine.h
r1392 r1396 141 141 /** 142 142 \brief CommandLine output operator 143 144 A typical output may look like this 145 \verbatim 146 Available options are: 147 -h, --help display this help and exit 148 -v, --verbose explain what is being done 149 \endverbatim 150 The output starts with a descriptive line such as "Available 151 options are:" (default) that can be set in constructor. Then follows the 152 options described in the order they were added to 153 Commandline. Each Option is described according to 154 Option::print(void) function. 155 \see OptionHelp 143 156 */ 144 157 std::ostream& operator<<(std::ostream&, const CommandLine&); -
branches/0.4-stable/yat/utility/Option.h
r1392 r1396 81 81 /** 82 82 \brief print help output 83 84 This function calls the four virtual private functions print1, 85 print2, print3, and print4. This allows an inherited class to 86 implement one (or several) of these functions and keep the 87 default output of the others. The default behavior is that: 88 89 - print1 prints the short name, '-h', as short_name(void) const 90 - print2 prints the long name, '--help', as long_name(void) const 91 - print3 is empty 92 - print4 prints the description as description(void) const. 83 93 */ 84 94 std::string print(void); -
branches/0.4-stable/yat/utility/OptionHelp.h
r1392 r1396 39 39 40 40 When this option is found in parsing of commandline, it displays 41 a help output exits. 41 a help output and exits. A typical output looks like: 42 43 \verbatim 44 Usage: foo [OPTION]... 45 46 SYNOPSIS 47 48 Available options are: 49 -h, --help display this help and exit 50 -v, --verbose explain what is being done 51 52 Some extra information explaining something. 53 \endverbatim 54 55 The output consist of four blocks. The first block can be 56 modified with usage(void) function. The second is block is 57 typically a one-liner explaining the application and can be 58 modified with the synopsis(void) function. The third block 59 contain the description of the different options, see 60 operator<<(std::ostream&, const CommandLine&) for further 61 details. The last block can be modified with post_arguments(void) 62 function. 42 63 */ 43 64 class OptionHelp : public OptionSwitch -
branches/0.4-stable/yat/utility/utility.h
r1392 r1396 34 34 /// 35 35 36 #include <limits> 36 37 #include <string> 37 38 #include <stdexcept>
Note: See TracChangeset
for help on using the changeset viewer.