![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 1998 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: dfdDfadRec.h,v $ $Revision: 1.12 $ $State: Exp $ 00007 *******************************************************************************/ 00008 #ifndef dfdDfadRec_H_ 00009 #define dfdDfadRec_H_ 00010 00011 #include "terrainDbFactory/terrainDbFactoryDefines.h" 00012 #include "terrainDbFactory/dfadRec.h" 00013 #include <iosfwd> 00014 00015 // 00016 // DtDfdDfadMetafileRecord represents the parameters that can be specified in a 00017 // DfdDfadMetafileRecord, usually in a .map file, which is used to specify how and 00018 // what DFD files to import into a terrain. 00019 class DT_DLL_terrainDbFactory DtDfdDfadMetafileRecord : public DtDfadMetafileRecord 00020 { 00021 00022 public: 00023 00024 // default constructor. 00025 DtDfdDfadMetafileRecord(); 00026 00027 // destructor 00028 virtual ~DtDfdDfadMetafileRecord(); 00029 00030 // copy constructor 00031 DtDfdDfadMetafileRecord(const DtDfdDfadMetafileRecord& orig); 00032 00033 // assignment operator 00034 DtDfdDfadMetafileRecord& operator=(const DtDfdDfadMetafileRecord& rhs); 00035 00036 // Returns "dfad". 00037 virtual DtString recordTypeName() const; 00038 00039 // Read self from stream. 00040 virtual bool get(std::istream& stream); 00041 00042 // identifies a token or passes it to the parent class. 00043 virtual bool processToken(std::istream& stream, DtString& token); 00044 00045 static DtMetafileRecord* create(); 00046 00047 protected: 00048 00049 // Write self to stream. 00050 virtual bool writeAttributes(std::ostream& stream) const; 00051 virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0); 00052 virtual bool setToken(const DtString& token, const DtString value); 00053 00054 00055 }; 00056 00057 #endif 00058