00001 #ifndef _SonarMagic_h 00002 #define _SonarMagic_h 00003 00004 //============================================================================== 00005 // $Id: SonarMagic.h,v 1.3 2003/02/26 06:47:49 pfb Exp $ 00006 //============================================================================== 00007 00008 #include <ace/FILE_IO.h> 00009 00019 class SonarMagic 00020 { 00021 //============================================================================ 00022 public: 00023 00024 enum FileType { FILE_TYPE_UNDETERMINED, 00025 FILE_TYPE_SIMULATOR }; 00026 00030 SonarMagic(); 00031 00036 SonarMagic(const SonarMagic& rhs); 00037 00041 ~SonarMagic(); 00042 00048 SonarMagic& operator=(const SonarMagic& rhs); 00049 00056 bool read(ACE_FILE_IO& file); 00057 00066 bool write(ACE_FILE_IO& file, FileType type); 00067 00072 FileType type() const; 00073 00074 //============================================================================ 00075 private: 00076 FileType _type; 00077 }; 00078 00079 00080 //============================================================================== 00081 // 00082 // $Log: SonarMagic.h,v $ 00083 // Revision 1.3 2003/02/26 06:47:49 pfb 00084 // Work over of the guard defines. 00085 // 00086 // Revision 1.2 2000/06/05 05:51:46 pfb 00087 // Added the fluff. 00088 // 00089 // 00090 //============================================================================== 00091 #endif