featureError.h

Go to the documentation of this file.
00001 #ifndef FEATUREERROR_H
00002 #define FEATUREERROR_H
00003 
00004 #include <string>
00005 #include <iostream>
00006 
00007 using namespace std;
00008 
00009 //file featureError.h
00010 
00011 class featErr {
00012         public:
00013                 featErr() { }
00014                 featErr(const string &info) : message(info) { }
00015                 virtual void print(ostream &ous) const;
00016                 
00017         private:
00018                 string message;
00019 };
00020 
00021 class featLocErr : public featErr {
00022         public:
00023                 featLocErr() { }
00024                 featLocErr(const string &info, const string &loc) : featErr(info), locString(loc) { }
00025                 void print(ostream ous) const { featErr::print(ous); ous << "location string with problem: " << locString << endl; }
00026 
00027         private:
00028                 string locString;  // location string
00029 };
00030 
00031 #endif

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