VR-Forces 4.0.4 Class Documentation
include/terrainDbFactory/rpfPprMapRec.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 1998 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: rpfPprMapRec.h,v $ $Revision: 1.14 $ $State: Exp $
00007 *******************************************************************************/
00008 #ifndef rpfPprMapRec_H_
00009 #define rpfPprMapRec_H_
00010 
00011 #include "terrainDbFactory/terrainDbFactoryDefines.h"
00012 #include "terrainDbFactory/pprMapRec.h"
00013 #include <vlutil/vlString.h>
00014 
00015 // class DtRpfPaperMapRecord:
00016 //
00017 // Instances of this class are accessors to Mak terrain database metafiles.
00018 // Certain database formats require the use of a metafile as the top-level
00019 // file.  Example: gdf, dted
00020 
00021 class DT_DLL_terrainDbFactory DtRpfPaperMapRecord : public DtPaperMapRecord
00022 {
00023 
00024 public:
00025 
00026    // default constructor.
00027    DtRpfPaperMapRecord();
00028 
00029    // destructor
00030    virtual ~DtRpfPaperMapRecord();
00031 
00032    // copy constructor
00033    DtRpfPaperMapRecord(const DtRpfPaperMapRecord& orig);
00034 
00035    // assignment operator
00036    DtRpfPaperMapRecord& operator=(const DtRpfPaperMapRecord& rhs);
00037 
00038    virtual DtPaperMapRecord* clone();
00039 
00040    virtual DtString recordTypeName() const;
00041 
00042    // Returns the type of the papermap volume.
00043    // Can be one of:
00044    // ADRG, ADRI, CAC, CADRG, CIB, DBDB5, DBDBV, ASRP, USRP, SRG, CRP, IT
00045    virtual const DtString& type() const;
00046    virtual void setType(const DtString & type);
00047 
00048    // Returns resolution set by user in map file
00049    virtual const DtString& resolution() const;
00050    virtual void setResolution(const DtString & res);
00051 
00052    // Read self from stream.
00053    virtual bool get(std::istream& stream);
00054 
00055    // identifies a token or passes it to the parent class.
00056    virtual bool processToken(std::istream& stream, DtString& token);
00057 
00058    static DtMetafileRecord * create();
00059 
00060 protected:
00061 
00062    // Write self to stream.
00063    virtual bool writeAttributes(std::ostream& stream) const;
00064    virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
00065    virtual bool setToken(const DtString& token, const DtString value);
00066 
00067 protected:
00068 
00069    DtString myType;
00070    DtString myResolution;
00071    static const DtString theParameterType;
00072    static const DtString theResolutionType;
00073 
00074 };
00075 
00076 #endif
00077 

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)