00001
00002 #ifndef XSIL_TIME_HH
00003 #define XSIL_TIME_HH
00004
00005 #include "Time.hh"
00006 #include "xsil/xobj.hh"
00007 #include <string>
00008
00009 class Time;
00010
00011 namespace xsil {
00012 class xobj;
00013 class Xwriter;
00014
00022 class time : public xobj {
00023 public:
00027 time(void);
00028
00035 time(const char* Name, const char* Type=0, const char* Value=0);
00036
00042 time(const char* Name, const Time& t);
00043
00047 ~time(void);
00048
00053 void Spew(Xwriter& xout) const;
00054
00059 time* Clone(void) const;
00060
00065 const char* getObjType(void) const;
00066
00071 Time getTime(void) const;
00072
00077 const char* getValue(void) const;
00078
00083 void setValue(const char* Value);
00084
00090 void setValue(unsigned int Value);
00091
00096 void setValue(const std::string& Value);
00097
00102 void setValue(const Time& Value);
00103
00104 private:
00105 std::string mValue;
00106 };
00107
00108
00109 inline const char*
00110 time::getValue(void) const {
00111 return mValue.c_str();
00112 }
00113
00114 }
00115
00116
00117 #endif // XSIL_TIME_HH