/* name: timestamp.h author: the C++ course @X purpose: example for INF585 - time stamp header source: GNU C++ history: 100126 work started */ class TimeStampException { public: TimeStampException(); ~TimeStampException(); }; class TimeStamp { public: TimeStamp(); // constructor ~TimeStamp(); // destructor long get(void) const; // read the time within the object void set(long theTimeStamp); // write a new time within the object // update the object time with the system time void update(void) throw (TimeStampException); // operator / int operator/(int a); friend void AccessTimeStamp(TimeStamp& t); private: long timestamp; };