Logo ROOT  
Reference Guide
XrdProofdMultiStr Class Reference

Definition at line 151 of file XrdProofdAux.h.

Public Member Functions

 XrdProofdMultiStr (const char *s)
 
virtual ~XrdProofdMultiStr ()
 
XrdOucString Export ()
 Return a string with comma-separated elements. More...
 
XrdOucString Get (int i)
 Return i-th combination (i : 0 -> fN-1) More...
 
bool IsValid () const
 
bool Matches (const char *s)
 Return true if 's' is compatible with this multi-string. More...
 
int N () const
 

Private Member Functions

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

Private Attributes

XrdOucString fHead
 
int fN
 
XrdOucString fTail
 
std::list< XrdProofdMultiStrTokenfTokens
 

#include <XrdProofdAux.h>

Constructor & Destructor Documentation

◆ XrdProofdMultiStr()

XrdProofdMultiStr::XrdProofdMultiStr ( const char *  s)
inline

Definition at line 160 of file XrdProofdAux.h.

◆ ~XrdProofdMultiStr()

virtual XrdProofdMultiStr::~XrdProofdMultiStr ( )
inlinevirtual

Definition at line 161 of file XrdProofdAux.h.

Member Function Documentation

◆ Export()

XrdOucString XrdProofdMultiStr::Export ( )

Return a string with comma-separated elements.

Definition at line 2027 of file XrdProofdAux.cxx.

◆ Get()

XrdOucString XrdProofdMultiStr::Get ( int  i)

Return i-th combination (i : 0 -> fN-1)

Definition at line 2053 of file XrdProofdAux.cxx.

◆ Init()

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

Init the multi-string handler.

Supported formats: <head>[1-4]<tail> for <head>1<tail>, ..., <head>4<tail> (4 items) <head>[a,b]<tail> for <head>a<tail>, <head>b<tail> (2 items) <head>[a,1-3]<tail> for <head>a<tail>, <head>1<tail>, <head>2<tail>, <head>3<tail> (4 items) <head>[01-15]<tail> for <head>01<tail>, ..., <head>15<tail> (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 1963 of file XrdProofdAux.cxx.

◆ IsValid()

bool XrdProofdMultiStr::IsValid ( ) const
inline

Definition at line 164 of file XrdProofdAux.h.

◆ Matches()

bool XrdProofdMultiStr::Matches ( const char *  s)

Return true if 's' is compatible with this multi-string.

Definition at line 2004 of file XrdProofdAux.cxx.

◆ N()

int XrdProofdMultiStr::N ( ) const
inline

Definition at line 166 of file XrdProofdAux.h.

Member Data Documentation

◆ fHead

XrdOucString XrdProofdMultiStr::fHead
private

Definition at line 153 of file XrdProofdAux.h.

◆ fN

int XrdProofdMultiStr::fN
private

Definition at line 156 of file XrdProofdAux.h.

◆ fTail

XrdOucString XrdProofdMultiStr::fTail
private

Definition at line 154 of file XrdProofdAux.h.

◆ fTokens

std::list<XrdProofdMultiStrToken> XrdProofdMultiStr::fTokens
private

Definition at line 155 of file XrdProofdAux.h.


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