ROOT  6.06/09
Reference Guide
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | Static Private Attributes | List of all members
XrdProofdConfig Class Reference

Definition at line 31 of file XrdProofdConfig.h.

Public Member Functions

 XrdProofdConfig (const char *cfg=0, XrdSysError *edest=0)
 Main constructor. More...
 
virtual ~XrdProofdConfig ()
 
void SetCfgEDest (const char *cfg, XrdSysError *edest)
 Set config file and error handler. More...
 
const char * CfgFile () const
 
virtual int Config (bool rcf=0)
 
virtual int DoDirective (XrdProofdDirective *, char *, XrdOucStream *, bool)
 
virtual void RegisterDirectives ()
 

Protected Member Functions

int ParseFile (bool rcf=false)
 Parse config file for the registered directives. More...
 
bool ReadFile (bool update=true)
 Return true if the file has never been read or did change since last reading, false otherwise. More...
 
void Register (const char *dname, XrdProofdDirective *d)
 

Protected Attributes

XrdSysErrorfEDest
 

Private Attributes

XrdProofdFile fCfgFile
 
XrdOucHash< XrdProofdDirectivefDirectives
 

Static Private Attributes

static XrdOucString fgHost
 

#include <XrdProofdConfig.h>

+ Inheritance diagram for XrdProofdConfig:
+ Collaboration diagram for XrdProofdConfig:

Constructor & Destructor Documentation

XrdProofdConfig::XrdProofdConfig ( const char *  cfg = 0,
XrdSysError edest = 0 
)

Main constructor.

Definition at line 42 of file XrdProofdConfig.cxx.

virtual XrdProofdConfig::~XrdProofdConfig ( )
inlinevirtual

Definition at line 48 of file XrdProofdConfig.h.

Member Function Documentation

const char* XrdProofdConfig::CfgFile ( ) const
inline
virtual int XrdProofdConfig::Config ( bool  rcf = 0)
inlinevirtual
virtual int XrdProofdConfig::DoDirective ( XrdProofdDirective ,
char *  ,
XrdOucStream *  ,
bool   
)
inlinevirtual
int XrdProofdConfig::ParseFile ( bool  rcf = false)
protected

Parse config file for the registered directives.

The flag 'rcf' is 0 on the first call, 1 on successive calls. Returns 0 on success, -1 otherwise

Definition at line 102 of file XrdProofdConfig.cxx.

Referenced by Config().

bool XrdProofdConfig::ReadFile ( bool  update = true)
protected

Return true if the file has never been read or did change since last reading, false otherwise.

If update is true, the modification time is updated, so next call will return 0.

Definition at line 67 of file XrdProofdConfig.cxx.

Referenced by XrdProofdProofServMgr::Config(), and ParseFile().

void XrdProofdConfig::Register ( const char *  dname,
XrdProofdDirective d 
)
inlineprotected
virtual void XrdProofdConfig::RegisterDirectives ( )
inlinevirtual
void XrdProofdConfig::SetCfgEDest ( const char *  cfg,
XrdSysError edest 
)

Set config file and error handler.

Definition at line 51 of file XrdProofdConfig.cxx.

Referenced by XrdProofdConfig().

Member Data Documentation

XrdProofdFile XrdProofdConfig::fCfgFile
private

Definition at line 34 of file XrdProofdConfig.h.

Referenced by ParseFile(), ReadFile(), and SetCfgEDest().

XrdOucHash<XrdProofdDirective> XrdProofdConfig::fDirectives
private

Definition at line 35 of file XrdProofdConfig.h.

Referenced by ParseFile().

XrdSysError* XrdProofdConfig::fEDest
protected
XrdOucString XrdProofdConfig::fgHost
staticprivate

Definition at line 37 of file XrdProofdConfig.h.

Referenced by ParseFile().


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