![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: gdbMfRec.h,v $ $Revision: 1.14 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef gdbMfRec_H_ 00009 #define gdbMfRec_H_ 00010 00011 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00012 #include "terrainDbFactory/terrainMfRec.h" 00013 00014 00015 // The DtGdbMetafile record specifies the gdb file(s) to load and how to load them. 00016 class DT_DLL_terrainDbFactory DtGdbMetafileRecord : public DtTerrainMetafileRecord 00017 { 00018 00019 public: 00020 00021 // default constructor. 00022 DtGdbMetafileRecord(); 00023 00024 // destructor 00025 virtual ~DtGdbMetafileRecord(); 00026 00027 // copy constructor 00028 DtGdbMetafileRecord(const DtGdbMetafileRecord& orig); 00029 00030 // assignment operator 00031 DtGdbMetafileRecord& operator=(const DtGdbMetafileRecord& orig); 00032 00033 // Returns "gdb". 00034 virtual DtString recordTypeName() const; 00035 00036 // Read self from stream. 00037 virtual bool get(std::istream& stream); 00038 00039 // identifies a token or passes it to the parent class. 00040 virtual bool processToken(std::istream& stream, DtString& token); 00041 00042 static DtMetafileRecord* create(); 00043 00044 protected: 00045 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 00051 protected: 00052 00053 static const DtString theParameterFile; 00054 static const DtString theCreateMasterTerrainFile; 00055 static const DtString theMergeIntoSingleTerrainFile; 00056 00057 }; 00058 00059 #endif 00060