MLPACK
1.0.4
|
00001 00023 #ifndef __MLPACK_CORE_IO_OPTION_HPP 00024 #define __MLPACK_CORE_IO_OPTION_HPP 00025 00026 #include <string> 00027 00028 #include "cli.hpp" 00029 00030 namespace mlpack { 00031 namespace util { 00032 00041 template<typename N> 00042 class Option 00043 { 00044 public: 00060 Option(bool ignoreTemplate, 00061 N defaultValue, 00062 const std::string& identifier, 00063 const std::string& description, 00064 const std::string& parent = std::string(""), 00065 bool required = false); 00066 00077 Option(const std::string& identifier, 00078 const std::string& description, 00079 const std::string& parent = std::string("")); 00080 }; 00081 00090 class ProgramDoc 00091 { 00092 public: 00102 ProgramDoc(const std::string& programName, 00103 const std::string& documentation); 00104 00106 std::string programName; 00108 std::string documentation; 00109 }; 00110 00111 }; // namespace util 00112 }; // namespace mlpack 00113 00114 // For implementations of templated functions 00115 #include "option_impl.hpp" 00116 00117 #endif