![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2006 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: mftMfRec.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 ** Created: 5/4/06 JAT, Updated: 5/4/06 00008 *******************************************************************************/ 00009 #ifndef mftMfRec_H_ 00010 #define mftMfRec_H_ 00011 00012 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00013 #include "terrainDbFactory/terrainMfRec.h" 00014 00015 00016 // Use this metafile record to define terrain database in MetaFlight format 00017 class DT_DLL_terrainDbFactory DtMtFltMetafileRecord : public DtTerrainMetafileRecord 00018 { 00019 00020 public: 00021 00022 // default constructor. 00023 DtMtFltMetafileRecord(); 00024 00025 // destructor 00026 virtual ~DtMtFltMetafileRecord(); 00027 00028 // copy constructor 00029 DtMtFltMetafileRecord(const DtMtFltMetafileRecord& orig); 00030 00031 // assignment operator 00032 DtMtFltMetafileRecord& operator=(const DtMtFltMetafileRecord& orig); 00033 00034 // Returns "mft". 00035 virtual DtString recordTypeName() const; 00036 00037 // Read self from stream. 00038 virtual bool get(std::istream& stream); 00039 00040 // identifies a token or passes it to the parent class. 00041 virtual bool processToken(std::istream& stream, DtString& token); 00042 00043 static DtMetafileRecord* create(); 00044 00045 protected: 00046 // Write self to stream 00047 virtual bool writeAttributes(std::ostream& stream) const; 00048 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00049 virtual bool setToken(const DtString& token, const DtString value); 00050 protected: 00051 00052 static const DtString theParameterFile; 00053 00054 }; 00055 00056 #endif 00057