Dip  0.92.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Attributes | Static Protected Attributes | Private Member Functions | List of all members
UtilApp Class Reference

#include <UtilApp.h>

Collaboration diagram for UtilApp:
Collaboration graph
[legend]

Public Member Functions

 UtilApp (int &argc, char *argv[])
 
 UtilApp ()
 
 ~UtilApp ()
 
const std::string & Machine ()
 
const std::string & Program () const
 
const std::string & FullPathname () const
 
int Pid ()
 
bool GetSetting (const char *name, bool defaultValue=true, const char *section=NULL) const
 
std::string GetSetting (const char *name, const char *defaultValue, const char *section=NULL) const
 
short GetSetting (const char *name, short defaultValue, const char *section=NULL) const
 
int GetSetting (const char *name, int defaultValue, const char *section=NULL) const
 
long GetSetting (const char *name, long defaultValue, const char *section=NULL) const
 
double GetSetting (const char *name, double defaultValue, const char *section=NULL) const
 
bool GetSetting (const char *name, bool defaultValue, const std::string &section) const
 
std::string GetSetting (const char *name, const char *defaultValue, const std::string &section) const
 
short GetSetting (const char *name, short defaultValue, const std::string &section) const
 
int GetSetting (const char *name, int defaultValue, const std::string &section) const
 
long GetSetting (const char *name, long defaultValue, const std::string &section) const
 
double GetSetting (const char *name, double defaultValue, const std::string &section) const
 
void LoadParmFile (std::string &fname)
 

Static Public Member Functions

static UtilAppTheApp ()
 

Public Attributes

UtilParameters m_parms
 

Protected Types

typedef std::map< std::string,
std::string, less< std::string > > 
PARM_MAP
 

Protected Attributes

std::string m_machine
 
std::string m_program
 
std::string m_fullPathname
 
int m_pid
 

Static Protected Attributes

static UtilAppm_theApp
 

Private Member Functions

UtilAppoperator= (const UtilApp &rhs)
 
bool operator== (const UtilApp &rhs) const
 
bool operator< (const UtilApp &rhs) const
 
void ScanCmdLineArgs (int &argc, char *argv[])
 

Detailed Description

Definition at line 21 of file UtilApp.h.

Member Typedef Documentation

typedef std::map<std::string,std::string,less<std::string> > UtilApp::PARM_MAP
protected

Definition at line 118 of file UtilApp.h.

Constructor & Destructor Documentation

UtilApp::UtilApp ( int &  argc,
char *  argv[] 
)
UtilApp::UtilApp ( )
inline

Definition at line 25 of file UtilApp.h.

UtilApp::~UtilApp ( )

Member Function Documentation

static UtilApp& UtilApp::TheApp ( )
inlinestatic

Definition at line 33 of file UtilApp.h.

References m_theApp.

const std::string& UtilApp::Machine ( )
const std::string& UtilApp::Program ( ) const
const std::string& UtilApp::FullPathname ( ) const
int UtilApp::Pid ( )
bool UtilApp::GetSetting ( const char *  name,
bool  defaultValue = true,
const char *  section = NULL 
) const

Referenced by GetSetting().

std::string UtilApp::GetSetting ( const char *  name,
const char *  defaultValue,
const char *  section = NULL 
) const
short UtilApp::GetSetting ( const char *  name,
short  defaultValue,
const char *  section = NULL 
) const
int UtilApp::GetSetting ( const char *  name,
int  defaultValue,
const char *  section = NULL 
) const
long UtilApp::GetSetting ( const char *  name,
long  defaultValue,
const char *  section = NULL 
) const
double UtilApp::GetSetting ( const char *  name,
double  defaultValue,
const char *  section = NULL 
) const
bool UtilApp::GetSetting ( const char *  name,
bool  defaultValue,
const std::string &  section 
) const
inline

Definition at line 65 of file UtilApp.h.

References GetSetting().

std::string UtilApp::GetSetting ( const char *  name,
const char *  defaultValue,
const std::string &  section 
) const
inline

Definition at line 70 of file UtilApp.h.

References GetSetting().

short UtilApp::GetSetting ( const char *  name,
short  defaultValue,
const std::string &  section 
) const
inline

Definition at line 74 of file UtilApp.h.

References GetSetting().

int UtilApp::GetSetting ( const char *  name,
int  defaultValue,
const std::string &  section 
) const
inline

Definition at line 78 of file UtilApp.h.

References GetSetting().

long UtilApp::GetSetting ( const char *  name,
long  defaultValue,
const std::string &  section 
) const
inline

Definition at line 82 of file UtilApp.h.

References GetSetting().

double UtilApp::GetSetting ( const char *  name,
double  defaultValue,
const std::string &  section 
) const
inline

Definition at line 86 of file UtilApp.h.

References GetSetting().

void UtilApp::LoadParmFile ( std::string &  fname)
UtilApp& UtilApp::operator= ( const UtilApp rhs)
private
bool UtilApp::operator== ( const UtilApp rhs) const
private
bool UtilApp::operator< ( const UtilApp rhs) const
private
void UtilApp::ScanCmdLineArgs ( int &  argc,
char *  argv[] 
)
private

Member Data Documentation

UtilParameters UtilApp::m_parms

Definition at line 91 of file UtilApp.h.

std::string UtilApp::m_machine
protected

Definition at line 111 of file UtilApp.h.

std::string UtilApp::m_program
protected

Definition at line 112 of file UtilApp.h.

std::string UtilApp::m_fullPathname
protected

Definition at line 113 of file UtilApp.h.

int UtilApp::m_pid
protected

Definition at line 114 of file UtilApp.h.

UtilApp* UtilApp::m_theApp
staticprotected

Definition at line 121 of file UtilApp.h.

Referenced by TheApp().


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