status.h

Go to the documentation of this file.
00001 #ifndef IIS_STATUS_H
00002 #define IIS_STATUS_H
00003 
00004 #include "value.h"
00005 
00006 class Status: public Value
00007 {
00008   QString status_string;
00009   virtual Data getSaveDescription(QString)
00010     {
00011       return String(status_string);
00012     }
00013   virtual QString toString() 
00014     {
00015       return status_string;
00016     };
00017  protected:
00018   virtual bool equals_same_type(Value * other)
00019     {
00020       return status_string == ((Status*)other)->status_string;
00021     }
00022  public:
00023   Status(QString text): status_string(text) 
00024     {
00025     };
00026 };
00027 
00028 class Error: public Status
00029 {
00030  public:
00031   Error(QString err): Status(err)
00032     {
00033     }
00034 };
00035 
00036 class ParseError: public Error
00037 {
00038  public:
00039   ParseError(QString t): Error("Parse error: "+t) 
00040     {
00041     };
00042 };
00043 
00044 #endif
00045 

Generated on Mon Jun 5 22:08:42 2006 for iis by  doxygen 1.4.6