00001 #ifndef _SimulatorSystemPositionRecord_h 00002 #define _SimulatorSystemPositionRecord_h 00003 00004 //============================================================================== 00005 // $Id: SimulatorSystemPositionRecord.h,v 1.2 2003/02/26 06:47:49 pfb Exp $ 00006 //============================================================================== 00007 00008 #include <Common/File/SystemRecord.h> 00009 00010 #include <ace/System_Time.h> 00011 #include <g++-2/std/complext.h> 00012 00017 class SimulatorSystemPositionRecord : public SystemRecord 00018 { 00019 //============================================================================ 00020 public: 00024 SimulatorSystemPositionRecord(); 00025 00030 SimulatorSystemPositionRecord(const complex<float>& position); 00031 00036 SimulatorSystemPositionRecord(const SimulatorSystemPositionRecord& rhs); 00037 00041 ~SimulatorSystemPositionRecord(); 00042 00048 SimulatorSystemPositionRecord& operator=(const SimulatorSystemPositionRecord& rhs); 00049 00055 bool operator==(const SimulatorSystemPositionRecord& rhs) const; 00056 00063 bool operator!=(const SimulatorSystemPositionRecord& rhs) const; 00064 00069 off_t size() const; 00070 00076 ostream& operator<<(ostream& o); 00077 00081 bool write(ACE_FILE_IO& file); 00082 00086 bool read(const ACE_FILE_IO& file); 00087 00088 //============================================================================ 00089 private: 00090 00091 ACE_Time_Value _tv; 00092 complex<float> _position; 00093 }; 00094 00095 //============================================================================== 00096 // 00097 // $Log: SimulatorSystemPositionRecord.h,v $ 00098 // Revision 1.2 2003/02/26 06:47:49 pfb 00099 // Work over of the guard defines. 00100 // 00101 // Revision 1.1 2000/05/03 05:53:02 pfb 00102 // First pass. 00103 // 00104 // 00105 //============================================================================== 00106 #endif