16 #ifndef ROO_STREAM_PARSER 
   17 #define ROO_STREAM_PARSER 
   21 class RooStreamParser {
 
   24   RooStreamParser(std::istream& is) ;
 
   25   RooStreamParser(std::istream& is, 
const TString& errPrefix) ;
 
   26   virtual ~RooStreamParser();
 
   30   Bool_t expectToken(
const TString& expected, Bool_t zapOnError=kFALSE) ;
 
   31   void setPunctuation(
const TString& punct) ;
 
   32   TString getPunctuation()
 const { 
return _punct ; }
 
   34   Bool_t readDouble(Double_t& value, Bool_t zapOnError=kFALSE) ;
 
   35   Bool_t convertToDouble(
const TString& token, Double_t& value) ;
 
   37   Bool_t readInteger(Int_t& value, Bool_t zapOnError=kFALSE) ;
 
   38   Bool_t convertToInteger(
const TString& token, Int_t& value) ;
 
   40   Bool_t readString(TString& value, Bool_t zapOnError=kFALSE) ;
 
   41   Bool_t convertToString(
const TString& token, TString& 
string) ;
 
   44   inline Bool_t atEOF() { 
return _atEOF ; }
 
   45   void zapToEnd(Bool_t inclContLines=kFALSE) ;
 
   47   Bool_t isPunctChar(
char c) 
const ;
 
   58   ClassDef(RooStreamParser,0)