GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4Prefs Class Reference

Public Member Functions

 TGo4Prefs (const char *hostname)
 
void AddFile (const char *fname, bool errorout=false)
 
std::string GetOpt (const char *prefix)
 return option value with parameters replaced
 
const char * GetPar (const char *name)
 
bool HasPar (const char *name)
 
bool IsOk () const
 Return true if more than two parameter exists, hostname and os is default.
 
void ReplaceEnvPars (std::string &str)
 
void ReplacePars (std::string &str)
 
void SetPar (const char *name, const char *value, bool force=true)
 

Protected Attributes

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

Detailed Description

Definition at line 29 of file TGo4ServerProxy.cxx.

Constructor & Destructor Documentation

◆ TGo4Prefs()

TGo4Prefs::TGo4Prefs ( const char * hostname)
inline

Definition at line 33 of file TGo4ServerProxy.cxx.

References SetPar().

Member Function Documentation

◆ AddFile()

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().

◆ GetOpt()

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().

◆ GetPar()

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

Definition at line 114 of file TGo4ServerProxy.cxx.

References fPars.

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

◆ HasPar()

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

Definition at line 122 of file TGo4ServerProxy.cxx.

References GetPar().

Referenced by AddFile().

◆ IsOk()

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.

References fPars.

Referenced by TGo4ServerProxy::GetLaunchString().

◆ ReplaceEnvPars()

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

Definition at line 150 of file TGo4ServerProxy.cxx.

References TGo4Log::Debug().

Referenced by GetOpt().

◆ ReplacePars()

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

Definition at line 127 of file TGo4ServerProxy.cxx.

References fPars.

Referenced by GetOpt().

◆ SetPar()

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

Definition at line 107 of file TGo4ServerProxy.cxx.

References fPars.

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

Field Documentation

◆ fPars

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

Definition at line 31 of file TGo4ServerProxy.cxx.

Referenced by GetPar(), IsOk(), ReplacePars(), and SetPar().


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