Scarab  v1.6.1
Project 8 C++ Utility Library
Public Member Functions | Private Attributes | List of all members
configurator Class Reference

#include <configurator.hh>

Public Member Functions

 configurator (int an_argc, char **an_argv, scarab::param_node *a_default=NULL)
 
virtual ~configurator ()
 
const std::string & exe_name () const
 
scarab::param_nodeconfig ()
 
const scarab::param_nodeconfig () const
 
bool help_flag () const
 
bool version_flag () const
 
template<typename XReturnType >
XReturnType get (const std::string &a_name) const
 
template<typename XReturnType >
XReturnType get (const std::string &a_name, XReturnType a_default) const
 

Private Attributes

std::string f_exe_name
 
scarab::param_nodef_master_config
 
bool f_help_flag
 
bool f_version_flag
 
scarab::paramf_param_buffer
 
std::string f_string_buffer
 

Detailed Description

Definition at line 16 of file configurator.hh.

Constructor & Destructor Documentation

configurator ( int  an_argc,
char **  an_argv,
scarab::param_node a_default = NULL 
)

Definition at line 28 of file configurator.cc.

~configurator ( )
virtual

Definition at line 159 of file configurator.cc.

Member Function Documentation

scarab::param_node & config ( )
inline

Definition at line 86 of file configurator.hh.

const scarab::param_node & config ( ) const
inline

Definition at line 91 of file configurator.hh.

const std::string & exe_name ( ) const
inline

Definition at line 81 of file configurator.hh.

XReturnType get ( const std::string &  a_name) const

Definition at line 49 of file configurator.hh.

XReturnType get ( const std::string &  a_name,
XReturnType  a_default 
) const

Definition at line 60 of file configurator.hh.

bool help_flag ( ) const
inline

Definition at line 71 of file configurator.hh.

bool version_flag ( ) const
inline

Definition at line 76 of file configurator.hh.

Member Data Documentation

std::string f_exe_name
private

Definition at line 37 of file configurator.hh.

bool f_help_flag
private

Definition at line 40 of file configurator.hh.

scarab::param_node* f_master_config
private

Definition at line 39 of file configurator.hh.

scarab::param* f_param_buffer
mutableprivate

Definition at line 43 of file configurator.hh.

std::string f_string_buffer
private

Definition at line 45 of file configurator.hh.

bool f_version_flag
private

Definition at line 41 of file configurator.hh.


The documentation for this class was generated from the following files: