#include <parser.hpp>
Public Types | |
typedef std::list < parameter_ptr > ::const_iterator | param_iterator |
Public Member Functions | |
parser (cstring program_name=cstring()) | |
parser & | operator<< (parameter_ptr param) |
template<typename Modifier > | |
cla_detail::global_mod_parser < Modifier > | operator- (Modifier const &m) |
void | parse (int &argc, char_type **argv) |
param_iterator | first_param () const |
param_iterator | last_param () const |
const_argument_ptr | operator[] (cstring string_id) const |
cstring | get (cstring string_id) const |
template<typename T > | |
T const & | get (cstring string_id) const |
template<typename T > | |
void | get (cstring string_id, boost::optional< T > &res) const |
void | usage (out_stream &ostr) |
void | help (out_stream &ostr) |
typedef std::list<parameter_ptr>::const_iterator boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::param_iterator |
|
explicit |
References boost::unit_test::assign_op().
BOOST_RT_PARAM_INLINE parser::param_iterator boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::first_param | ( | ) | const |
BOOST_RT_PARAM_INLINE cstring boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::get | ( | cstring | string_id | ) | const |
|
inline |
|
inline |
References boost::shared_ptr< T >::reset().
BOOST_RT_PARAM_INLINE void boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::help | ( | out_stream & | ostr | ) |
References BOOST_RT_PARAM_CSTRING_LITERAL, BOOST_TEST_FOREACH, and usage().
BOOST_RT_PARAM_INLINE parser::param_iterator boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::last_param | ( | ) | const |
|
inline |
BOOST_RT_PARAM_INLINE parser & boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::operator<< | ( | parameter_ptr | param | ) |
References BOOST_RT_PARAM_LITERAL, BOOST_RT_PARAM_VALIDATE_LOGIC, and BOOST_TEST_FOREACH.
BOOST_RT_PARAM_INLINE const_argument_ptr boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::operator[] | ( | cstring | string_id | ) | const |
References BOOST_RT_PARAM_LITERAL, BOOST_RT_PARAM_VALIDATE_LOGIC, and BOOST_TEST_FOREACH.
BOOST_RT_PARAM_INLINE void boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::parse | ( | int & | argc, |
char_type ** | argv | ||
) |
References BOOST_RT_CLA_VALIDATE_INPUT, BOOST_RT_PARAM_LITERAL, BOOST_RT_PARAM_REPORT_LOGIC_ERROR, BOOST_RT_PARAM_TRACE, BOOST_RT_PARAM_VALIDATE_LOGIC, BOOST_TEST_FOREACH, boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::commit(), boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::eoi(), boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::handle_mismatch(), boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::init(), boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::remainder(), and boost::BOOST_RT_PARAM_NAMESPACE::cla::argv_traverser::rollback().
BOOST_RT_PARAM_INLINE void boost::BOOST_RT_PARAM_NAMESPACE::cla::parser::usage | ( | out_stream & | ostr | ) |
References boost::unit_test::assign_op(), BOOST_RT_PARAM_CSTRING_LITERAL, BOOST_RT_PARAM_LITERAL, and BOOST_TEST_FOREACH.
Referenced by help().