VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
rpfPaperMapRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: rpfPprMapRec.h,v $ $Revision: 1.14 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef rpfPaperMapRecord_H_
9 #define rpfPaperMapRecord_H_
10 
13 #include <vlutil/vlString.h>
14 
15 // class DtRpfPaperMapRecord:
16 //
17 // Instances of this class are accessors to Mak terrain database metafiles.
18 // Certain database formats require the use of a metafile as the top-level
19 // file. Example: gdf, dted
20 
22 {
23 
24 public:
25 
26  // default constructor.
28 
29  // destructor
30  virtual ~DtRpfPaperMapRecord() override;
31 
32  // copy constructor
34 
35  // assignment operator
37 
38  virtual DtPaperMapRecord *clone() override;
39 
40  virtual DtString recordTypeName() const override;
41 
42  // Returns the type of the papermap volume.
43  // Can be one of:
44  // ADRG, ADRI, CAC, CADRG, CIB, DBDB5, DBDBV, ASRP, USRP, SRG, CRP, IT
45  virtual const DtString& type() const;
46  virtual void setType(const DtString & type);
47 
48  // Returns resolution set by user in map file
49  virtual const DtString& resolution() const;
50  virtual void setResolution(const DtString & res);
51 
52  // Read self from stream.
53  virtual bool get(std::istream &stream) override;
54 
55  // identifies a token or passes it to the parent class.
56  virtual bool processToken(std::istream &stream, DtString &token) override;
57 
58  static DtMetafileRecord * create();
59 
60 protected:
61 
62  // Write self to stream.
63  virtual bool writeAttributes(std::ostream &stream) const override;
64  virtual bool getAttribute(const DtString attrName, DtString &value,
65  unsigned index = 0) override;
66  virtual bool setToken(const DtString &token, const DtString value) override;
67 
68 protected:
69 
72  static const DtString theParameterType;
74 
75 };
76 
77 #endif
78 
DtPaperMapRecord & operator=(const DtPaperMapRecord &rhs)
static const DtString theResolutionType
Definition: rpfPaperMapRecord.h:73
Definition: rpfPaperMapRecord.h:21
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0) override
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.
DtString myType
Definition: rpfPaperMapRecord.h:70
Definition: paperMapRecord.h:22
static DtMetafileRecord * create()
virtual DtPaperMapRecord * clone()
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
virtual bool processToken(std::istream &stream, DtString &token) override
identifies a token or passes token the parent class.
DtString myResolution
Definition: rpfPaperMapRecord.h:71
Definition: metafileRecord.h:28
virtual bool setToken(const DtString &token, const DtString value) override
identifies a token and returns true if the value can be set to it, false otherwise ...
virtual DtString recordTypeName() const override
Returns the type name for the particular record. Descendants should have this method return some stri...
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
static const DtString theParameterType
Definition: rpfPaperMapRecord.h:72

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)