![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /****************************************************************************** 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 ******************************************************************************/ 00005 /****************************************************************************** 00006 ** $RCSfile: DtHeaderParser.h,v $ $Revision: 1.10 $ $State: Exp $ 00007 ******************************************************************************/ 00008 00012 00013 #ifndef DtHeaderParser_H_ 00014 #define DtHeaderParser_H_ 00015 00016 #include <vrvCore/vrvCore.h> 00017 #include <makArchives/DtTerrainPatchRecord.h> 00018 #include <string> 00019 00020 namespace makVrv 00021 { 00022 class DtDe; 00023 00026 class DT_DLL_VRVCORE DtHeaderParser 00027 { 00028 00029 public: 00030 00032 DtHeaderParser(const std::string& filePath); 00033 00035 virtual ~DtHeaderParser(); 00036 00039 virtual bool isValid() = 0; 00040 00042 virtual const std::string& terrainCoordinateSystem(); 00043 00045 virtual const std::string& terrainCoordinateSystemParameters(); 00046 00048 virtual const std::string& filePath(); 00049 00050 typedef std::list<makArchives::DtTerrainPatchRecord> TerrainPatchRecords; 00051 00053 const TerrainPatchRecords& terrainPatchRecords() const; 00054 00055 protected: 00056 00057 std::string myFilePath; 00058 std::string myTerrainCoordinateSystem; 00059 std::string myTerrainCoordinateSystemParameters; 00060 TerrainPatchRecords myTerrainPatchRecords; 00061 00062 }; 00063 00066 class DT_DLL_VRVCORE DtHeaderParserCreator 00067 { 00068 00069 public: 00070 00072 DtHeaderParserCreator(); 00073 00075 virtual ~DtHeaderParserCreator(); 00076 00078 virtual DtHeaderParser* create(DtDe& de, const std::string& filePath) const = 0; 00079 00080 }; 00081 } 00082 00083 #endif 00084