parerr.h

Go to the documentation of this file.
00001 //file parerr.h for handling errors in pir2ace
00002 #ifndef PARERR_H
00003 #define PARERR_H
00004 #include <iostream>
00005 #include <string>
00006 
00007 class parerr
00008 {
00009  public:
00010    parerr();
00011    parerr &pick(const string &m);
00012    parerr &pick(const char *m);
00013    void print(ostream &ous) const;  //output info 
00014         void context(istream &ins, int sz=500); //pick the context of the error
00015         void prtContext(ostream &ous) const;
00016 
00017  private:
00018    string info;
00019         string cntxt; //context
00020 };
00021 
00022 #endif

Generated on Wed Aug 10 11:56:51 2011 for Softwares from Orpara by  doxygen 1.5.6