1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- #ifndef BOOST_OPTION_HPP_VP_2004_02_25
- #define BOOST_OPTION_HPP_VP_2004_02_25
- #include <boost/program_options/config.hpp>
- #include <string>
- #include <vector>
- namespace boost { namespace program_options {
-
- template<class charT>
- class basic_option {
- public:
- basic_option()
- : position_key(-1)
- , unregistered(false)
- , case_insensitive(false)
- {}
- basic_option(const std::string& xstring_key,
- const std::vector< std::string> &xvalue)
- : string_key(xstring_key)
- , position_key(-1)
- , value(xvalue)
- , unregistered(false)
- , case_insensitive(false)
- {}
-
- std::string string_key;
-
- int position_key;
-
- std::vector< std::basic_string<charT> > value;
-
- std::vector< std::basic_string<charT> > original_tokens;
-
- bool unregistered;
-
- bool case_insensitive;
- };
- typedef basic_option<char> option;
- typedef basic_option<wchar_t> woption;
- }}
- #endif
|