THaPrintOption Utility class to deal with print option strings. Supports blank- and comma-separated lists of options and/or numerical arguments that are contained in a single option string.
THaPrintOption() | |
THaPrintOption(const char* string) | |
THaPrintOption(const THaPrintOption& opt) | |
virtual | ~THaPrintOption() |
static TClass* | Class() |
const char* | Data() const |
Int_t | GetNOptions() const |
const char* | GetOption(Int_t i = 0) const |
Int_t | GetValue(Int_t i = 0) const |
virtual TClass* | IsA() const |
Bool_t | IsLine() const |
const char* | operator const char*() const |
const char* | operator()(Int_t i) const |
THaPrintOption& | operator=(const THaPrintOption& rhs) |
THaPrintOption& | operator=(const char* rhs) |
const char* | operator[](Int_t i) const |
virtual void | ShowMembers(TMemberInspector&) |
virtual void | Streamer(TBuffer&) |
void | StreamerNVirtual(TBuffer& ClassDef_StreamerNVirtual_b) |
virtual void | Parse() |
char* | fEmpty | Pointer to \0, returned by GetOption() if error |
Int_t | fNTokens | Number of tokens |
Int_t* | fParam | Array of the parameter values in the string |
Bool_t | fParsed | Indicator whether string has been parsed |
char* | fString | Pointer to local copy of string |
char* | fTokenStr | Copy of string parsed by strtok() |
char** | fTokens | Array of pointers to the tokens in the string |
Parse the string and put the results in the internal arrays. This function should never generate an error since the input cannot be invalid.
Get i-th token from string. Tokens are delimited by blanks or commas.
Get integer value of the i-th token from string. Example: With "OPT,10,20,30" or "OPT 10 20 30", GetValue(2) returns 20.