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

#include <UtilApp.h>

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
 

Detailed Description

Definition at line 21 of file UtilApp.h.

Member Typedef Documentation

◆ PARM_MAP

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() [1/2]

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

◆ UtilApp() [2/2]

UtilApp::UtilApp ( )
inline

Definition at line 25 of file UtilApp.h.

◆ ~UtilApp()

UtilApp::~UtilApp ( )

Member Function Documentation

◆ TheApp()

static UtilApp& UtilApp::TheApp ( )
inlinestatic

Definition at line 33 of file UtilApp.h.

◆ Machine()

const std::string& UtilApp::Machine ( )

◆ Program()

const std::string& UtilApp::Program ( ) const

◆ FullPathname()

const std::string& UtilApp::FullPathname ( ) const

◆ Pid()

int UtilApp::Pid ( )

◆ GetSetting() [1/12]

bool UtilApp::GetSetting ( const char *  name,
bool  defaultValue = true,
const char *  section = NULL 
) const

◆ GetSetting() [2/12]

std::string UtilApp::GetSetting ( const char *  name,
const char *  defaultValue,
const char *  section = NULL 
) const

◆ GetSetting() [3/12]

short UtilApp::GetSetting ( const char *  name,
short  defaultValue,
const char *  section = NULL 
) const

◆ GetSetting() [4/12]

int UtilApp::GetSetting ( const char *  name,
int  defaultValue,
const char *  section = NULL 
) const

◆ GetSetting() [5/12]

long UtilApp::GetSetting ( const char *  name,
long  defaultValue,
const char *  section = NULL 
) const

◆ GetSetting() [6/12]

double UtilApp::GetSetting ( const char *  name,
double  defaultValue,
const char *  section = NULL 
) const

◆ GetSetting() [7/12]

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

Definition at line 65 of file UtilApp.h.

◆ GetSetting() [8/12]

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

Definition at line 70 of file UtilApp.h.

◆ GetSetting() [9/12]

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

Definition at line 74 of file UtilApp.h.

◆ GetSetting() [10/12]

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

Definition at line 78 of file UtilApp.h.

◆ GetSetting() [11/12]

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

Definition at line 82 of file UtilApp.h.

◆ GetSetting() [12/12]

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

Definition at line 86 of file UtilApp.h.

◆ LoadParmFile()

void UtilApp::LoadParmFile ( std::string &  fname)

Member Data Documentation

◆ m_parms

UtilParameters UtilApp::m_parms

Definition at line 91 of file UtilApp.h.

◆ m_machine

std::string UtilApp::m_machine
protected

Definition at line 111 of file UtilApp.h.

◆ m_program

std::string UtilApp::m_program
protected

Definition at line 112 of file UtilApp.h.

◆ m_fullPathname

std::string UtilApp::m_fullPathname
protected

Definition at line 113 of file UtilApp.h.

◆ m_pid

int UtilApp::m_pid
protected

Definition at line 114 of file UtilApp.h.

◆ m_theApp

UtilApp* UtilApp::m_theApp
staticprotected

Definition at line 121 of file UtilApp.h.


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