class RooStreamParser

Function Members (Methods)

public:
RooStreamParser(istream& is)
RooStreamParser(const RooStreamParser&)
RooStreamParser(istream& is, const TString& errPrefix)
virtual~RooStreamParser()
Bool_tatEOF()
Bool_tatEOL()
static TClass*Class()
Bool_tconvertToDouble(const TString& token, Double_t& value)
Bool_tconvertToInteger(const TString& token, Int_t& value)
Bool_tconvertToString(const TString& token, TString& string)
Bool_texpectToken(const TString& expected, Bool_t zapOnError = kFALSE)
TStringgetPunctuation() const
virtual TClass*IsA() const
Bool_tisPunctChar(char c) const
RooStreamParser&operator=(const RooStreamParser&)
Bool_treadDouble(Double_t& value, Bool_t zapOnError = kFALSE)
Bool_treadInteger(Int_t& value, Bool_t zapOnError = kFALSE)
TStringreadLine()
Bool_treadString(TString& value, Bool_t zapOnError = kFALSE)
TStringreadToken()
voidsetPunctuation(const TString& punct)
virtual voidShowMembers(TMemberInspector& insp, char* parent)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
voidzapToEnd(Bool_t inclContLines = kFALSE)

Data Members

protected:
Bool_t_atEOF
Bool_t_atEOL
istream*_is
TString_prefix
TString_punct

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

RooStreamParser(istream& is)
 Constructor
RooStreamParser(istream& is, const TString& errPrefix)
 Constructor with error message prefix
~RooStreamParser()
 Destructor
Bool_t atEOL()
void setPunctuation(const TString& punct)
 Change list of punctuation characters
Bool_t isPunctChar(char c) const
 Check if given char is considered punctuation
TString readToken()
 Read one token
TString readLine()
 Read an entire line
void zapToEnd(Bool_t inclContLines = kFALSE)
 Skip over everything until the end of the current line
Bool_t expectToken(const TString& expected, Bool_t zapOnError = kFALSE)
 Read a token and check if it matches the given expected value
Bool_t readDouble(Double_t& value, Bool_t zapOnError = kFALSE)
 Read a token and convert it to a Double_t
Bool_t convertToDouble(const TString& token, Double_t& value)
 Convert given string to a double
Bool_t readInteger(Int_t& value, Bool_t zapOnError = kFALSE)
 Read a token and convert it to an Int_t
Bool_t convertToInteger(const TString& token, Int_t& value)
 Convert given string to an Int_t
Bool_t readString(TString& value, Bool_t zapOnError = kFALSE)
 Read a string token
Bool_t convertToString(const TString& token, TString& string)
 Convert given token to a string (i.e. remove eventual quotation marks)
RooStreamParser(istream& is)
 Constructors, assignment etc.
TString getPunctuation()
{ return _punct ; }
Bool_t atEOF()
{ return _atEOF ; }

Last update: Thu Jan 17 08:45:59 2008
Copyright (c) 2000-2005, Regents of the University of California *

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.