XRootD
XrdOucPListAnchor Class Reference

#include <XrdOucPList.hh>

+ Inheritance diagram for XrdOucPListAnchor:
+ Collaboration diagram for XrdOucPListAnchor:

Public Member Functions

 XrdOucPListAnchor (unsigned long long dfx=0)
 
 ~XrdOucPListAnchor ()
 
XrdOucPListAbout (const char *pathname)
 
unsigned long long Default ()
 
void Default (unsigned long long x)
 
void Defstar (unsigned long long x)
 
void Empty (XrdOucPList *newlist=0)
 
unsigned long long Find (const char *pathname)
 
XrdOucPListFirst ()
 
void Insert (XrdOucPList *newitem)
 
XrdOucPListMatch (const char *pathname)
 
int NotEmpty ()
 
- Public Member Functions inherited from XrdOucPList
 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)
 

Detailed Description

Definition at line 88 of file XrdOucPList.hh.

Constructor & Destructor Documentation

◆ XrdOucPListAnchor()

XrdOucPListAnchor::XrdOucPListAnchor ( unsigned long long  dfx = 0)
inline

Definition at line 143 of file XrdOucPList.hh.

144  : dflts(dfx), dstrs(dfx) {}

◆ ~XrdOucPListAnchor()

XrdOucPListAnchor::~XrdOucPListAnchor ( )
inline

Definition at line 145 of file XrdOucPList.hh.

145 {}

Member Function Documentation

◆ About()

XrdOucPList* XrdOucPListAnchor::About ( const char *  pathname)
inline

Definition at line 92 of file XrdOucPList.hh.

93  {int plen = strlen(pathname);
94  XrdOucPList *p = next;
95  while(p) {if (p->PathOK(pathname, plen)) break;
96  p=p->next;
97  }
98  return p;
99  }
int PathOK(const char *pd, const int pl)
Definition: XrdOucPList.hh:48

References XrdOucPList::PathOK().

Referenced by XrdOssSys::Alloc_Cache(), and XrdOssSys::Create().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Default() [1/2]

unsigned long long XrdOucPListAnchor::Default ( )
inline

Definition at line 103 of file XrdOucPList.hh.

103 {return dflts;}

◆ Default() [2/2]

void XrdOucPListAnchor::Default ( unsigned long long  x)
inline

Definition at line 101 of file XrdOucPList.hh.

101 {dflts = x;}

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

+ Here is the caller graph for this function:

◆ Defstar()

void XrdOucPListAnchor::Defstar ( unsigned long long  x)
inline

Definition at line 104 of file XrdOucPList.hh.

104 {dstrs = x;}

Referenced by XrdOssSys::xpath().

+ Here is the caller graph for this function:

◆ Empty()

void XrdOucPListAnchor::Empty ( XrdOucPList newlist = 0)
inline

Definition at line 106 of file XrdOucPList.hh.

107  {XrdOucPList *p = next;
108  while(p) {next = p->next; delete p; p = next;}
109  next = newlist;
110  }

◆ Find()

unsigned long long XrdOucPListAnchor::Find ( const char *  pathname)
inline

Definition at line 112 of file XrdOucPList.hh.

113  {int plen = strlen(pathname);
114  XrdOucPList *p = next;
115  while(p) {if (p->PathOK(pathname, plen)) break;
116  p=p->next;
117  }
118  if (p) return p->flags;
119  return (*pathname == '/' ? dflts : dstrs);
120  }

References XrdOucPList::PathOK().

Referenced by XrdSsiSfs::chmod(), XrdSsiSfs::exists(), XrdOfs::FAttr(), XrdSsiSfs::fsctl(), XrdOssSys::IsRemote(), XrdSsiSfs::mkdir(), XrdFrmConfig::NeedsCTA(), XrdPssFile::Open(), XrdSsiDir::open(), XrdSsiFile::open(), XrdFrmConfig::PathOpts(), XrdOssSys::PathOpts(), XrdSsiSfs::rem(), XrdSsiSfs::remdir(), XrdSsiSfs::rename(), XrdSsiSfs::stat(), XrdSsiSfs::truncate(), and XrdSsiStatInfo().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ First()

XrdOucPList* XrdOucPListAnchor::First ( )
inline

Definition at line 132 of file XrdOucPList.hh.

132 {return next;}

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

+ Here is the caller graph for this function:

◆ Insert()

void XrdOucPListAnchor::Insert ( XrdOucPList newitem)
inline

Definition at line 134 of file XrdOucPList.hh.

135  {XrdOucPList *pp = 0, *cp = next;
136  while(cp && newitem->pathlen < cp->pathlen) {pp=cp;cp=cp->next;}
137  if (pp) {newitem->next = pp->next; pp->next = newitem;}
138  else {newitem->next = next; next = newitem;}
139  }

Referenced by XrdOssSys::Configure(), XrdOucExport::ParsePath(), and XrdOssSys::xspace().

+ Here is the caller graph for this function:

◆ Match()

XrdOucPList* XrdOucPListAnchor::Match ( const char *  pathname)
inline

Definition at line 122 of file XrdOucPList.hh.

123  {int plen = strlen(pathname);
124  XrdOucPList *p = next;
125  while(p) {if (p->pathlen == plen
126  && !strcmp(p->path, pathname)) break;
127  p=p->next;
128  }
129  return p;
130  }

Referenced by XrdOucExport::ParsePath(), and XrdOssSys::xspace().

+ Here is the caller graph for this function:

◆ NotEmpty()

int XrdOucPListAnchor::NotEmpty ( )
inline

Definition at line 141 of file XrdOucPList.hh.

141 {return next != 0;}

Referenced by XrdOssSys::Alloc_Cache(), and XrdSsiSfsConfig::Configure().

+ Here is the caller graph for this function:

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