ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
XrdProofdMultiStrToken Class Reference

Definition at line 132 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

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

#include <XrdProofdAux.h>

Member Enumeration Documentation

Enumerator
kUndef 
kSimple 
kLetter 
kDigit 
kDigits 

Definition at line 143 of file XrdProofdAux.h.

Constructor & Destructor Documentation

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

Definition at line 145 of file XrdProofdAux.h.

virtual XrdProofdMultiStrToken::~XrdProofdMultiStrToken ( )
inlinevirtual

Definition at line 146 of file XrdProofdAux.h.

Member Function Documentation

XrdOucString XrdProofdMultiStrToken::Export ( int &  next)

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

Definition at line 2213 of file XrdProofdAux.cxx.

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 2088 of file XrdProofdAux.cxx.

Referenced by XrdProofdMultiStrToken().

bool XrdProofdMultiStrToken::IsValid ( ) const
inline

Definition at line 149 of file XrdProofdAux.h.

bool XrdProofdMultiStrToken::Matches ( const char *  s)

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

Definition at line 2178 of file XrdProofdAux.cxx.

int XrdProofdMultiStrToken::N ( ) const
inline

Definition at line 151 of file XrdProofdAux.h.

Member Data Documentation

XrdOucString XrdProofdMultiStrToken::fA
private

Definition at line 136 of file XrdProofdAux.h.

Referenced by Export(), Init(), and Matches().

XrdOucString XrdProofdMultiStrToken::fB
private

Definition at line 137 of file XrdProofdAux.h.

Referenced by Init().

long XrdProofdMultiStrToken::fIa
private

Definition at line 134 of file XrdProofdAux.h.

Referenced by Export(), and Init().

long XrdProofdMultiStrToken::fIb
private

Definition at line 135 of file XrdProofdAux.h.

Referenced by Export(), Init(), and Matches().

int XrdProofdMultiStrToken::fN
private

Definition at line 139 of file XrdProofdAux.h.

Referenced by Init(), and N().

int XrdProofdMultiStrToken::fType
private

Definition at line 138 of file XrdProofdAux.h.

Referenced by Export(), Init(), IsValid(), and Matches().


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