00001 #ifndef CDB_HISTORY_EVENT_HH
00002 #define CDB_HISTORY_EVENT_HH
00003
00004
00005
00006
00007 #include "BdbTime/BdbTime.hh"
00008
00009 #include "CdbBase/CdbCPtrBase.hh"
00010 #include "CdbBase/CdbHistoryEventPtrFwd.hh"
00011
00012 #include <iostream>
00013
00014 #include <string>
00015
00016
00017
00018
00019
00020
00021 class CdbHistoryEvent {
00022
00023 friend class CdbCPtrBase< CdbHistoryEvent >;
00024
00025 private:
00026
00027
00028
00029 CdbHistoryEvent( );
00030
00031 protected:
00032
00033
00034
00035
00036
00037
00038
00039 CdbHistoryEvent( const BdbTime& theTimeStamp,
00040 const std::string& theTypeName
00041 );
00042
00043
00044
00045 CdbHistoryEvent( const CdbHistoryEvent& theEvent );
00046
00047
00048
00049 CdbHistoryEvent& operator=( const CdbHistoryEvent& theEvent );
00050
00051 public:
00052
00053
00054
00055 virtual ~CdbHistoryEvent( );
00056
00057
00058
00059
00060
00061 BdbTime timeStamp( ) const { return _timestamp; }
00062
00063
00064
00065 std::string typeName( ) const { return _typeName; }
00066
00067
00068
00069
00070
00071
00072
00073 virtual void dump( std::ostream& theStream ) const;
00074
00075 private:
00076
00077 BdbTime _timestamp;
00078 std::string _typeName;
00079
00080 };
00081
00082 #endif // CDB_HISTORY_EVENT_HH