arg  1.2
a C++ command-line parser
Public Member Functions | List of all members
arg::SubParser Class Reference

A Parser that is a Value itself. More...

#include <arg.hh>

Inheritance diagram for arg::SubParser:
Inheritance graph
[legend]
Collaboration diagram for arg::SubParser:
Collaboration graph
[legend]

Public Member Functions

void set (std::string const &str)
 convert the str to value and put it in storage
 
- Public Member Functions inherited from arg::Value
virtual std::string to_str () const
 convert the value to a string
 
virtual std::string get_type () const
 type name of the value
 
- Public Member Functions inherited from arg::Parser
void add_help (std::string const &msg)
 add additional help text between option helps
 
Optionadd_opt (int key, std::string const &name="", bool hide=false)
 add an Option
 
Optionadd_opt (std::string const &name, bool hide=false)
 add an Option without a specified key
 
Optionget_opt (std::string const &name)
 get an existing Option
 
std::vector< std::string > & args ()
 
void parse (int argc, char *argv[], bool ignore_unknown=false)
 perform command-line parsing More...
 
void set_header (std::string const &text)
 set the header in help
 
std::string const & get_header () const
 get the header text of help
 

Additional Inherited Members

- Protected Attributes inherited from arg::Parser
std::string prog_name
 name to identify the program
 

Detailed Description

A Parser that is a Value itself.