VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/vmapMfRec.h
Go to the documentation of this file.
00001 /******************************************************************************
00002 ** Copyright  (c) 2006 MAK Technologies, Inc.** All rights reserved.     
00003 ******************************************************************************/
00004 /******************************************************************************
00005 * $RCSfile: vmapMfRec.h,v $ $Revision: 1.7 $ $State: Exp $
00006 ******************************************************************************/
00007 
00008 #ifndef VMAP_METAFILE_RECORD_H_ 
00009 #define VMAP_METAFILE_RECORD_H_
00010 
00011 #include <list>
00012 
00015 
00016 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00017 #include "terrainDbFactory/vectorDataRec.h"
00018 
00019 class DT_DLL_terrainDbFactory DtVmapMetafileRecord : public DtVectorDataRecord
00020 {
00021 
00022 public:
00023 
00024    // default constructor.
00025    DtVmapMetafileRecord();
00026 
00027    // destructor
00028    virtual ~DtVmapMetafileRecord();
00029 
00030    // copy constructor
00031    DtVmapMetafileRecord(const DtVmapMetafileRecord& orig);
00032 
00033    // assignment operator
00034    DtVmapMetafileRecord& operator=(const DtVmapMetafileRecord& rhs);
00035 
00036    // Returns "vpf".
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    std::list<DtString> libraryList();
00048    std::list<DtString> thematicList();
00049    std::list<DtString> featureList();
00050    
00051 protected:
00052    // Write self to stream.
00053    virtual bool writeAttributes(std::ostream& stream) const;
00054    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00055    virtual bool setToken(const DtString& token, const DtString value);
00056 
00057 protected:
00058    static const DtString theParameterLibraryPath;
00059    static const DtString theParameterLibrary;
00060    static const DtString theParameterThematicLayer;
00061    static const DtString theParameterFeatureClass;
00062    static const DtString theParameterSWCorner;
00063    static const DtString theParameterNECorner;
00064 
00065    DtString myCurrentDatabasePath;
00066    DtString myCurrentThematicLayer;
00067    DtString myCurrentFeatureClass;
00068 
00069 };
00070 
00071 #endif
00072 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)