XRootD
Loading...
Searching...
No Matches
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)
XrdOucPList(const char *pd="", unsigned long long fv=0)

References XrdOucPList::XrdOucPList(), and XrdOucPList::PathOK().

+ Here is the call 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;}

◆ Defstar()

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

Definition at line 104 of file XrdOucPList.hh.

104{dstrs = x;}

◆ 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 }

References XrdOucPList::XrdOucPList().

+ Here is the call graph for this function:

◆ 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::XrdOucPList(), and XrdOucPList::PathOK().

+ Here is the call graph for this function:

◆ First()

XrdOucPList * XrdOucPListAnchor::First ( )
inline

Definition at line 132 of file XrdOucPList.hh.

132{return next;}

References XrdOucPList::XrdOucPList().

+ Here is the call 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 }

References XrdOucPList::XrdOucPList().

Referenced by XrdOucExport::ParsePath().

+ Here is the call graph for this function:
+ 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 }

References XrdOucPList::XrdOucPList().

Referenced by XrdOucExport::ParsePath().

+ Here is the call graph for this function:
+ 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;}

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