XRootD
Loading...
Searching...
No Matches
XrdOucArgsXO Class Reference
Collaboration diagram for XrdOucArgsXO:

Public Member Functions

 XrdOucArgsXO (XrdOucArgsXO *nP, const char *optw, int minl, const char *optm)
 ~XrdOucArgsXO ()
char * operator% (char *optarg)
int operator== (char *optarg)

Detailed Description

Definition at line 43 of file XrdOucArgs.cc.

Constructor & Destructor Documentation

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

References XrdOucArgsXO().

Referenced by XrdOucArgsXO(), and operator%().

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

◆ ~XrdOucArgsXO()

XrdOucArgsXO::~XrdOucArgsXO ( )
inline

Definition at line 70 of file XrdOucArgs.cc.

71 {if (Optword) free(Optword);
72 if (Optnext) delete Optnext;
73 }

Member Function Documentation

◆ operator%()

char * XrdOucArgsXO::operator% ( char * optarg)
inline

Definition at line 53 of file XrdOucArgs.cc.

54 {int i = strlen(optarg);
55 XrdOucArgsXO *p = this;
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 }
XrdOucArgsXO(XrdOucArgsXO *nP, const char *optw, int minl, const char *optm)
Definition XrdOucArgs.cc:62

References XrdOucArgsXO().

Here is the call graph for this function:

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