XRootD
XrdOucPList Class Reference

#include <XrdOucPList.hh>

+ Inheritance diagram for XrdOucPList:
+ Collaboration diagram for XrdOucPList:

Public Member Functions

 XrdOucPList (const char *pd, const char *pn)
 
 XrdOucPList (const char *pd="", unsigned long long fv=0)
 
 ~XrdOucPList ()
 
int Attr ()
 
unsigned long long Flag ()
 
const char * Name ()
 
XrdOucPListNext ()
 
char * Path ()
 
int PathOK (const char *pd, const int pl)
 
int Plen ()
 
void Set (const char *pd, const char *pn)
 
void Set (int aval)
 
void Set (unsigned long long fval)
 

Friends

class XrdOucPListAnchor
 

Detailed Description

Definition at line 37 of file XrdOucPList.hh.

Constructor & Destructor Documentation

◆ XrdOucPList() [1/2]

XrdOucPList::XrdOucPList ( const char *  pd = "",
unsigned long long  fv = 0 
)
inline

Definition at line 63 of file XrdOucPList.hh.

64  : flags(fv), next(0), path(strdup(pd)),
65  pathlen(strlen(pd)), attrs(0) {}

◆ XrdOucPList() [2/2]

XrdOucPList::XrdOucPList ( const char *  pd,
const char *  pn 
)
inline

Definition at line 67 of file XrdOucPList.hh.

68  : next(0), path(0), attrs(0)
69  {Set(pd, pn);}
void Set(int aval)
Definition: XrdOucPList.hh:51

References Set().

+ Here is the call graph for this function:

◆ ~XrdOucPList()

XrdOucPList::~XrdOucPList ( )
inline

Definition at line 71 of file XrdOucPList.hh.

72  {if (path) free(path);}

Member Function Documentation

◆ Attr()

int XrdOucPList::Attr ( )
inline

Definition at line 41 of file XrdOucPList.hh.

41 {return attrs;}

Referenced by XrdOssSys::Alloc_Cache(), XrdOssSys::Config_Display(), and XrdOssSys::ConfigSpace().

+ Here is the caller graph for this function:

◆ Flag()

unsigned long long XrdOucPList::Flag ( )
inline

Definition at line 42 of file XrdOucPList.hh.

42 {return flags;}

Referenced by XrdOssSys::Config_Display(), XrdOssSys::ConfigCache(), XrdOssSys::ConfigMio(), XrdOssSys::ConfigSpace(), XrdOssSys::ConfigStage(), XrdOssSys::Create(), XrdOucExport::ParsePath(), and XrdOssSys::xpath().

+ Here is the caller graph for this function:

◆ Name()

const char* XrdOucPList::Name ( )
inline

Definition at line 43 of file XrdOucPList.hh.

43 {return name;}

Referenced by XrdOssSys::Alloc_Cache(), XrdOssSys::Config_Display(), and XrdOssSys::ConfigSpace().

+ Here is the caller graph for this function:

◆ Next()

XrdOucPList* XrdOucPList::Next ( )
inline

Definition at line 44 of file XrdOucPList.hh.

44 {return next;}

Referenced by XrdOssSys::Config_Display(), XrdOssSys::ConfigCache(), XrdOssSys::ConfigMio(), XrdOssSys::ConfigSpace(), XrdOssSys::ConfigStage(), and XrdOssSys::ConfigStats().

+ Here is the caller graph for this function:

◆ Path()

char* XrdOucPList::Path ( )
inline

Definition at line 45 of file XrdOucPList.hh.

45 {return path;}

Referenced by XrdOssSys::Config_Display(), XrdOssSys::ConfigSpace(), XrdOssSys::ConfigStage(), XrdOssSys::ConfigStats(), and XrdOssSys::xpath().

+ Here is the caller graph for this function:

◆ PathOK()

int XrdOucPList::PathOK ( const char *  pd,
const int  pl 
)
inline

Definition at line 48 of file XrdOucPList.hh.

49  {return pl >= pathlen && !strncmp(pd, path, pathlen);}

Referenced by XrdOucPListAnchor::About(), and XrdOucPListAnchor::Find().

+ Here is the caller graph for this function:

◆ Plen()

int XrdOucPList::Plen ( )
inline

Definition at line 46 of file XrdOucPList.hh.

46 {return pathlen;}

◆ Set() [1/3]

void XrdOucPList::Set ( const char *  pd,
const char *  pn 
)
inline

Definition at line 53 of file XrdOucPList.hh.

54  {if (path) free(path);
55  pathlen = strlen(pd);
56  int n = strlen(pn) + 1 + pathlen + 1;
57  path = (char *)malloc(n);
58  n = snprintf(path, n, "%s", pd);
59  name = path+pathlen+1;
60  strcpy(name, pn); // This is safe
61  }

◆ Set() [2/3]

void XrdOucPList::Set ( int  aval)
inline

Definition at line 51 of file XrdOucPList.hh.

51 {attrs = aval;}

Referenced by XrdOucPList(), XrdOssSys::ConfigCache(), XrdOssSys::ConfigMio(), XrdOssSys::ConfigStage(), XrdOssSys::Configure(), XrdOssSys::Create(), XrdOucExport::ParsePath(), and XrdOssSys::xspace().

+ Here is the caller graph for this function:

◆ Set() [3/3]

void XrdOucPList::Set ( unsigned long long  fval)
inline

Definition at line 52 of file XrdOucPList.hh.

52 {flags = fval;}

Friends And Related Function Documentation

◆ XrdOucPListAnchor

friend class XrdOucPListAnchor
friend

Definition at line 74 of file XrdOucPList.hh.


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