GSI Object Oriented Online Offline (Go4)  GO4-6.2.0
 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 29 of file TGo4ServerProxy.cxx.

Constructor & Destructor Documentation

TGo4Prefs::TGo4Prefs ( const char *  hostname)
inline

Definition at line 33 of file TGo4ServerProxy.cxx.

References SetPar().

Member Function Documentation

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

Definition at line 45 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 174 of file TGo4ServerProxy.cxx.

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

Referenced by TGo4ServerProxy::GetLaunchString().

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

Definition at line 114 of file TGo4ServerProxy.cxx.

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

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

Definition at line 121 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 105 of file TGo4ServerProxy.cxx.

Referenced by TGo4ServerProxy::GetLaunchString().

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

Definition at line 151 of file TGo4ServerProxy.cxx.

References TGo4Log::Debug().

Referenced by GetOpt().

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

Definition at line 126 of file TGo4ServerProxy.cxx.

Referenced by GetOpt().

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

Definition at line 107 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 31 of file TGo4ServerProxy.cxx.


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