Scarab  v2.1.0
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_node f_master_config
 
bool f_help_flag
 
bool f_version_flag
 

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 31 of file configurator.cc.

~configurator ( )
virtual

Definition at line 156 of file configurator.cc.

Member Function Documentation

scarab::param_node & config ( )
inline

Definition at line 71 of file configurator.hh.

const scarab::param_node & config ( ) const
inline

Definition at line 76 of file configurator.hh.

const std::string & exe_name ( ) const
inline

Definition at line 66 of file configurator.hh.

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

Definition at line 45 of file configurator.hh.

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

Definition at line 51 of file configurator.hh.

bool help_flag ( ) const
inline

Definition at line 56 of file configurator.hh.

bool version_flag ( ) const
inline

Definition at line 61 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.

bool f_version_flag
private

Definition at line 41 of file configurator.hh.


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