Logo ROOT   6.18/05
Reference Guide
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdProofdMultiStrToken Class Reference

Definition at line 129 of file XrdProofdAux.h.

Public Types

enum  ETokenType {
  kUndef , kSimple , kLetter , kDigit ,
  kDigits
}
 

Public Member Functions

 XrdProofdMultiStrToken (const char *s=0)
 
virtual ~XrdProofdMultiStrToken ()
 
XrdOucString Export (int &next)
 Export 'next' token; use next < 0 start from the first. More...
 
bool IsValid () const
 
bool Matches (const char *s)
 Return true if 's' is compatible with this token. More...
 
int N () const
 

Private Member Functions

void Init (const char *s)
 Init the multi-string token. More...
 

Private Attributes

XrdOucString fA
 
XrdOucString fB
 
long fIa
 
long fIb
 
int fN
 
int fType
 

#include <XrdProofdAux.h>

Member Enumeration Documentation

◆ ETokenType

Enumerator
kUndef 
kSimple 
kLetter 
kDigit 
kDigits 

Definition at line 140 of file XrdProofdAux.h.

Constructor & Destructor Documentation

◆ XrdProofdMultiStrToken()

XrdProofdMultiStrToken::XrdProofdMultiStrToken ( const char *  s = 0)
inline

Definition at line 142 of file XrdProofdAux.h.

◆ ~XrdProofdMultiStrToken()

virtual XrdProofdMultiStrToken::~XrdProofdMultiStrToken ( )
inlinevirtual

Definition at line 143 of file XrdProofdAux.h.

Member Function Documentation

◆ Export()

XrdOucString XrdProofdMultiStrToken::Export ( int &  next)

Export 'next' token; use next < 0 start from the first.

Definition at line 2215 of file XrdProofdAux.cxx.

◆ Init()

void XrdProofdMultiStrToken::Init ( const char *  s)
private

Init the multi-string token.

Supported formats: [1-4] for 1, ..., 4 (4 items) [a,b] for a, b<tail> (2 items) [a,1-3] for a, 1, 2, 3 (4 items) [01-15] for 01, ..., 15 (15 items)

A dashed is possible only between numerically treatable values, i.e. single letters ([a-Z] will take all tokens between 'a' and 'Z') or n-field numbers ([001-999] will take all numbers 1 to 999 always using 3 spaces). Mixed values (e.g. [a-034]) are not allowed.

Definition at line 2090 of file XrdProofdAux.cxx.

◆ IsValid()

bool XrdProofdMultiStrToken::IsValid ( ) const
inline

Definition at line 146 of file XrdProofdAux.h.

◆ Matches()

bool XrdProofdMultiStrToken::Matches ( const char *  s)

Return true if 's' is compatible with this token.

Definition at line 2180 of file XrdProofdAux.cxx.

◆ N()

int XrdProofdMultiStrToken::N ( ) const
inline

Definition at line 148 of file XrdProofdAux.h.

Member Data Documentation

◆ fA

XrdOucString XrdProofdMultiStrToken::fA
private

Definition at line 133 of file XrdProofdAux.h.

◆ fB

XrdOucString XrdProofdMultiStrToken::fB
private

Definition at line 134 of file XrdProofdAux.h.

◆ fIa

long XrdProofdMultiStrToken::fIa
private

Definition at line 131 of file XrdProofdAux.h.

◆ fIb

long XrdProofdMultiStrToken::fIb
private

Definition at line 132 of file XrdProofdAux.h.

◆ fN

int XrdProofdMultiStrToken::fN
private

Definition at line 136 of file XrdProofdAux.h.

◆ fType

int XrdProofdMultiStrToken::fType
private

Definition at line 135 of file XrdProofdAux.h.


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