Logo ROOT   6.08/07
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
XpdEnv Class Reference

Definition at line 107 of file XrdProofdProofServMgr.h.

Public Member Functions

 XpdEnv (const char *n, const char *env, const char *usr=0, const char *grp=0, int smi=-1, int smx=-1, int vmi=-1, int vmx=-1)
 
int Matches (const char *usr, const char *grp, int ver=-1)
 Check if this env applies to 'usr', 'grp, 'ver'. More...
 
void Print (const char *what)
 Print the content of this env. More...
 
void Reset (const char *n, const char *env, const char *usr=0, const char *grp=0, int smi=-1, int smx=-1, int vmi=-1, int vmx=-1)
 

Static Public Member Functions

static int ToVersCode (int ver, bool hex=0)
 Transform version number ver (format patch + 100*minor + 10000*maj, e.g. More...
 

Public Attributes

XrdOucString fEnv
 
XrdOucString fGroups
 
XrdOucString fName
 
int fSvnMax
 
int fSvnMin
 
XrdOucString fUsers
 
int fVerMax
 
int fVerMin
 

#include <XrdProofdProofServMgr.h>

Constructor & Destructor Documentation

◆ XpdEnv()

XpdEnv::XpdEnv ( const char *  n,
const char *  env,
const char *  usr = 0,
const char *  grp = 0,
int  smi = -1,
int  smx = -1,
int  vmi = -1,
int  vmx = -1 
)
inline

Definition at line 117 of file XrdProofdProofServMgr.h.

Member Function Documentation

◆ Matches()

int XpdEnv::Matches ( const char *  usr,
const char *  grp,
int  ver = -1 
)

Check if this env applies to 'usr', 'grp, 'ver'.

Returns -1 if it does not match, >=0 if it matches. The value is a linear combination of matching lengths for user and group, with a weight of 1000 for the users one, so that an exact user match will always win.

Definition at line 5025 of file XrdProofdProofServMgr.cxx.

◆ Print()

void XpdEnv::Print ( const char *  what)

Print the content of this env.

Definition at line 5085 of file XrdProofdProofServMgr.cxx.

◆ Reset()

void XpdEnv::Reset ( const char *  n,
const char *  env,
const char *  usr = 0,
const char *  grp = 0,
int  smi = -1,
int  smx = -1,
int  vmi = -1,
int  vmx = -1 
)
inline

Definition at line 121 of file XrdProofdProofServMgr.h.

◆ ToVersCode()

int XpdEnv::ToVersCode ( int  ver,
bool  hex = 0 
)
static

Transform version number ver (format patch + 100*minor + 10000*maj, e.g.

52706) If 'hex' is true, the components are decoded as hex numbers

Definition at line 5063 of file XrdProofdProofServMgr.cxx.

Member Data Documentation

◆ fEnv

XrdOucString XpdEnv::fEnv

Definition at line 110 of file XrdProofdProofServMgr.h.

◆ fGroups

XrdOucString XpdEnv::fGroups

Definition at line 112 of file XrdProofdProofServMgr.h.

◆ fName

XrdOucString XpdEnv::fName

Definition at line 109 of file XrdProofdProofServMgr.h.

◆ fSvnMax

int XpdEnv::fSvnMax

Definition at line 114 of file XrdProofdProofServMgr.h.

◆ fSvnMin

int XpdEnv::fSvnMin

Definition at line 113 of file XrdProofdProofServMgr.h.

◆ fUsers

XrdOucString XpdEnv::fUsers

Definition at line 111 of file XrdProofdProofServMgr.h.

◆ fVerMax

int XpdEnv::fVerMax

Definition at line 116 of file XrdProofdProofServMgr.h.

◆ fVerMin

int XpdEnv::fVerMin

Definition at line 115 of file XrdProofdProofServMgr.h.


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