library: libRooFit
#include "RooStreamParser.h"

RooStreamParser


class description - header file - source file - inheritance tree (.pdf)

class RooStreamParser

Inheritance Chart:
RooStreamParser

    public:
RooStreamParser(istream& is) RooStreamParser(istream& is, const TString& errPrefix) virtual ~RooStreamParser() Bool_t atEOF() Bool_t atEOL() static TClass* Class() Bool_t convertToDouble(const TString& token, Double_t& value) Bool_t convertToInteger(const TString& token, Int_t& value) Bool_t convertToString(const TString& token, TString& string) Bool_t expectToken(const TString& expected, Bool_t zapOnError = kFALSE) TString getPunctuation() const virtual TClass* IsA() const Bool_t isPunctChar(char c) const Bool_t readDouble(Double_t& value, Bool_t zapOnError = kFALSE) Bool_t readInteger(Int_t& value, Bool_t zapOnError = kFALSE) TString readLine() Bool_t readString(TString& value, Bool_t zapOnError = kFALSE) TString readToken() void setPunctuation(const TString& punct) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void zapToEnd(Bool_t inclContLines = kFALSE)

Data Members


    protected:
istream& _is Bool_t _atEOL Bool_t _atEOF TString _prefix TString _punct

Class Description

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

Last update: Tue Jul 11 11:46:22 2006
Copyright (c) 2000-2005, Regents of the University of California *


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.