#include <cmd_line_parser.h>
rcsc::CmdLineParserに対する継承グラフ
Public メソッド | |
CmdLineParser (const int argc, const char *const *argv, const std::string &name_space="") | |
construct with original command line arguments | |
CmdLineParser (const std::list< std::string > &args, const std::string &name_space="") | |
construct with original command line arguments | |
bool | parse (ParamMap ¶m_map) |
analyze arguments and results are stored to parameter map | |
const std::list< std::string > & | args () const |
get the stored arguments | |
bool | failed () const |
check if all arguments are successfully parsed. | |
const std::vector< std::string > & | positionalOptions () const |
get the positional arguments | |
std::ostream & | print (std::ostream &os) const |
put the stored arguments to the output stream |
rcsc::CmdLineParser::CmdLineParser | ( | const int | argc, | |
const char *const * | argv, | |||
const std::string & | name_space = "" | |||
) |
construct with original command line arguments
argc | number of argument | |
argv | const double array of char | |
name_space | namespace string |
rcsc::CmdLineParser::CmdLineParser | ( | const std::list< std::string > & | args, | |
const std::string & | name_space = "" | |||
) |
construct with original command line arguments
args | argument string container | |
name_space | namespace string |
bool rcsc::CmdLineParser::parse | ( | ParamMap & | param_map | ) | [virtual] |
analyze arguments and results are stored to parameter map
param_map | reference to the parameter container |
rcsc::ParamParserを実装しています。
const std::list< std::string >& rcsc::CmdLineParser::args | ( | ) | const [inline] |
get the stored arguments
bool rcsc::CmdLineParser::failed | ( | ) | const [inline] |
check if all arguments are successfully parsed.
const std::vector< std::string >& rcsc::CmdLineParser::positionalOptions | ( | ) | const [inline] |
get the positional arguments
std::ostream & rcsc::CmdLineParser::print | ( | std::ostream & | os | ) | const |
put the stored arguments to the output stream
os | reference to the output stream |