#include <XrdXrootdXPath.hh>
Definition at line 42 of file XrdXrootdXPath.hh.
◆ XrdXrootdXPath()
XrdXrootdXPath::XrdXrootdXPath |
( |
const char * |
pathdata = "" , |
|
|
int |
popt = 0 , |
|
|
int |
flags = XROOTDXP_OK |
|
) |
| |
|
inline |
Definition at line 86 of file XrdXrootdXPath.hh.
87 {next = 0;
88 pathopt = popt | flags;
89 pathlen = strlen(pathdata);
90 path = strdup(pathdata);
91 }
◆ ~XrdXrootdXPath()
XrdXrootdXPath::~XrdXrootdXPath |
( |
| ) |
|
|
inline |
◆ Insert()
void XrdXrootdXPath::Insert |
( |
const char * |
pd, |
|
|
int |
popt = 0 , |
|
|
int |
flags = XROOTDXP_OK |
|
) |
| |
|
inline |
Definition at line 60 of file XrdXrootdXPath.hh.
64 {while(p && newp->pathlen < p->pathlen)
65 {pp = p; p = p->next;}
66 } else {
67 while(p && newp->pathlen >= p->pathlen)
68 {pp = p; p = p->next;}
69 }
70 newp->next = p;
71 if (pp) pp->next = newp;
72 else next = newp;
73 }
References XROOTDXP_OK.
Referenced by XrdXrootdProtocol::Configure().
◆ Next()
◆ Opts()
int XrdXrootdXPath::Opts |
( |
| ) |
|
|
inline |
◆ Path() [1/2]
char * XrdXrootdXPath::Path |
( |
| ) |
|
|
inline |
◆ Path() [2/2]
char * XrdXrootdXPath::Path |
( |
int & |
PLen | ) |
|
|
inline |
◆ Set()
void XrdXrootdXPath::Set |
( |
int |
opts, |
|
|
const char * |
pathdata = 0 |
|
) |
| |
|
inline |
Definition at line 51 of file XrdXrootdXPath.hh.
53 if (pathdata)
54 {if (path) free(path);
55 pathlen = strlen(pathdata);
56 path = strdup(pathdata);
57 }
58 }
References opts.
◆ Validate()
int XrdXrootdXPath::Validate |
( |
const char * |
pd, |
|
|
const int |
pl = 0 |
|
) |
| |
|
inline |
Definition at line 75 of file XrdXrootdXPath.hh.
76 {int plen = (pl ? pl : strlen(pd));
78 while(p && plen >= p->pathlen)
79 {if (!strncmp(pd, p->path, p->pathlen))
80 return p->pathopt;
81 p=p->next;
82 }
83 return 0;
84 }
The documentation for this class was generated from the following file: