Definition at line 43 of file XrdOucArgs.cc.
◆ XrdOucArgsXO()
XrdOucArgsXO::XrdOucArgsXO |
( |
XrdOucArgsXO * | nP, |
|
|
const char * | optw, |
|
|
int | minl, |
|
|
const char * | optm ) |
|
inline |
Definition at line 62 of file XrdOucArgs.cc.
63 {Optword = strdup(optw);
64 Optminl = minl; Optmaxl = strlen(optw);
65 Optvalu[0] = optm[0];
66 Optvalu[1] = (optm[0] ? optm[1] : '\0');
67 Optnext = nP;
68 }
◆ ~XrdOucArgsXO()
XrdOucArgsXO::~XrdOucArgsXO |
( |
| ) |
|
|
inline |
Definition at line 70 of file XrdOucArgs.cc.
71 {if (Optword) free(Optword);
72 if (Optnext) delete Optnext;
73 }
◆ operator%()
char * XrdOucArgsXO::operator% |
( |
char * | optarg | ) |
|
|
inline |
Definition at line 53 of file XrdOucArgs.cc.
54 {int i = strlen(optarg);
56 do if (i <= p->Optmaxl && i >= p->Optminl &&
57 !strncmp((const char *)p->Optword, optarg, i)) return p->Optvalu;
58 while((p = p->Optnext));
59 return 0;
60 }
◆ operator==()
int XrdOucArgsXO::operator== |
( |
char * | optarg | ) |
|
|
inline |
Definition at line 47 of file XrdOucArgs.cc.
48 {int i = strlen(optarg);
49 return i <= Optmaxl && i >= Optminl &&
50 !strncmp((const char *)Optword, optarg, i);
51 }
The documentation for this class was generated from the following file: