HLineParser
class description - source file - inheritance tree (.pdf)
public:
HLineParser()
~HLineParser()
static TClass* Class()
Bool_t eval(TArrayI* vals, Text_t* string)
virtual TClass* IsA() const
Bool_t parse(Text_t* line)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
private:
TObjArray fStrings
TArrayI fVars
HLineParser
This is a utility class. It allows to have a single line with variables
inside so you can give values to those variables and get a string
corresponding to the original text but with numbers instead of variables.
The variables are declared as numbers (variable number) between % symbols.
For example: "S%0%.M%1%" is interpreted as two varibles: "%0%" and "%1%".
HLineParser(void)
Default constructor
~HLineParser(void)
Destructor
Bool_t parse(Text_t *line)
Parses the text given in "line". For example if line="S%0%.M%1%" this
function will identify the literals "S", ".M" and the variables "%0%" and
"%1".
Bool_t eval(TArrayI *vals,Text_t *string)
Puts in "string" a text resulting of substituting all the variables in
the parsed text (see parse()) by its values given in "vals". Following
with the example in parse(), if now we set vals={1,3} the eval function
will set: string="S1.M3"
Inline Functions
TClass* Class()
TClass* IsA() const
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void StreamerNVirtual(TBuffer& b)
Author: Manuel Sanchez
Last update: 9/11/1998 by Manuel Sanchez
ROOT page - Class index - Class Hierarchy - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.