GSI Object Oriented Online Offline (Go4)  GO4-5.3.2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
TGo4Prefs Class Reference

Public Member Functions

 TGo4Prefs (const char *hostname)
 
void AddFile (const char *fname, bool errorout=false)
 
bool IsOk () const
 
void SetPar (const char *name, const char *value, bool force=true)
 
const char * GetPar (const char *name)
 
bool HasPar (const char *name)
 
void ReplacePars (std::string &str)
 
void ReplaceEnvPars (std::string &str)
 
std::string GetOpt (const char *prefix)
 

Protected Attributes

std::map< std::string,
std::string > 
fPars
 

Detailed Description

Definition at line 30 of file TGo4ServerProxy.cxx.

Constructor & Destructor Documentation

TGo4Prefs::TGo4Prefs ( const char *  hostname)
inline

Definition at line 34 of file TGo4ServerProxy.cxx.

References SetPar().

Member Function Documentation

void TGo4Prefs::AddFile ( const char *  fname,
bool  errorout = false 
)
inline

Definition at line 44 of file TGo4ServerProxy.cxx.

References TGo4Log::Debug(), GetPar(), HasPar(), and SetPar().

Referenced by TGo4ServerProxy::GetLaunchString().

std::string TGo4Prefs::GetOpt ( const char *  prefix)
inline

return option value with parameters replaced

Definition at line 173 of file TGo4ServerProxy.cxx.

References GetPar(), ReplaceEnvPars(), and ReplacePars().

Referenced by TGo4ServerProxy::GetLaunchString().

const char* TGo4Prefs::GetPar ( const char *  name)
inline

Definition at line 113 of file TGo4ServerProxy.cxx.

Referenced by AddFile(), GetOpt(), and HasPar().

bool TGo4Prefs::HasPar ( const char *  name)
inline

Definition at line 120 of file TGo4ServerProxy.cxx.

References GetPar().

Referenced by AddFile().

bool TGo4Prefs::IsOk ( ) const
inline

Return true if more than two parameter exists, hostname and os is default

Definition at line 104 of file TGo4ServerProxy.cxx.

Referenced by TGo4ServerProxy::GetLaunchString().

void TGo4Prefs::ReplaceEnvPars ( std::string &  str)
inline

Definition at line 150 of file TGo4ServerProxy.cxx.

References TGo4Log::Debug().

Referenced by GetOpt().

void TGo4Prefs::ReplacePars ( std::string &  str)
inline

Definition at line 125 of file TGo4ServerProxy.cxx.

Referenced by GetOpt().

void TGo4Prefs::SetPar ( const char *  name,
const char *  value,
bool  force = true 
)
inline

Definition at line 106 of file TGo4ServerProxy.cxx.

Referenced by AddFile(), TGo4ServerProxy::GetLaunchString(), and TGo4Prefs().

Member Data Documentation

std::map<std::string, std::string> TGo4Prefs::fPars
protected

Definition at line 32 of file TGo4ServerProxy.cxx.


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