Scarab
Project 8 C++ Utility Library
|
#include <parser.hh>
Inherits param_node.
Public Member Functions | |
parser (int an_argc, char **an_argv) | |
virtual | ~parser () |
void | parse (int an_argc, char **an_argv) |
![]() | |
param_node () | |
param_node (const param_node &orig) | |
virtual | ~param_node () |
param_node & | operator= (const param_node &rhs) |
virtual param * | clone () const |
virtual bool | is_null () const |
virtual bool | is_node () const |
virtual bool | has_subset (const param &a_subset) const |
unsigned | size () const |
bool | empty () const |
bool | has (const std::string &a_name) const |
unsigned | count (const std::string &a_name) const |
std::string | get_value (const std::string &a_name) const |
template<typename XValType > | |
XValType | get_value (const std::string &a_name) const |
std::string | get_value (const std::string &a_name, const std::string &a_default) const |
std::string | get_value (const std::string &a_name, const char *a_default) const |
template<typename XValType > | |
XValType | get_value (const std::string &a_name, XValType a_default) const |
const param * | at (const std::string &a_name) const |
param * | at (const std::string &a_name) |
const param_value * | value_at (const std::string &a_name) const |
param_value * | value_at (const std::string &a_name) |
const param_array * | array_at (const std::string &a_name) const |
param_array * | array_at (const std::string &a_name) |
const param_node * | node_at (const std::string &a_name) const |
param_node * | node_at (const std::string &a_name) |
const param & | operator[] (const std::string &a_name) const |
param & | operator[] (const std::string &a_name) |
bool | add (const std::string &a_name, const param &a_value) |
creates a copy of a_value More... | |
bool | add (const std::string &a_name, param *a_value_ptr) |
directly adds (without copying) a_value_ptr More... | |
void | replace (const std::string &a_name, const param &a_value) |
creates a copy of a_value More... | |
void | replace (const std::string &a_name, param *a_value_ptr) |
directly adds (without copying) a_value_ptr More... | |
void | merge (const param_node &a_object) |
void | erase (const std::string &a_name) |
param * | remove (const std::string &a_name) |
void | clear () |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
virtual std::string | to_string () const |
![]() | |
param () | |
param (const param &orig) | |
virtual | ~param () |
virtual bool | is_value () const |
virtual bool | is_array () const |
param_value & | as_value () |
param_array & | as_array () |
param_node & | as_node () |
const param_value & | as_value () const |
const param_array & | as_array () const |
const param_node & | as_node () const |
const param_value & | operator() () const |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
param_value & | operator() () |
Assumes that the parameter is a value, and returns a reference to itself. More... | |
const param & | operator[] (unsigned a_index) const |
param & | operator[] (unsigned a_index) |
const param & | operator[] (const std::string &a_name) const |
param & | operator[] (const std::string &a_name) |
Additional Inherited Members | |
![]() | |
typedef std::map< std::string, param * > | contents |
typedef contents::iterator | iterator |
typedef contents::const_iterator | const_iterator |
typedef contents::value_type | contents_type |
![]() | |
static unsigned | s_indent_level = 0 |
![]() | |
contents | f_contents |