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) 1998 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();
31 
32  // copy constructor
34 
35  // assignment operator
37 
38  virtual DtPaperMapRecord* clone();
39 
40  virtual DtString recordTypeName() const;
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);
54 
55  // identifies a token or passes it to the parent class.
56  virtual bool processToken(std::istream& stream, DtString& token);
57 
58  static DtMetafileRecord * create();
59 
60 protected:
61 
62  // Write self to stream.
63  virtual bool writeAttributes(std::ostream& stream) const;
64  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
65  virtual bool setToken(const DtString& token, const DtString value);
66 
67 protected:
68 
71  static const DtString theParameterType;
73 
74 };
75 
76 #endif
77 
DtPaperMapRecord & operator=(const DtPaperMapRecord &rhs)
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
static const DtString theResolutionType
Definition: rpfPaperMapRecord.h:72
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; parameter. Returns True if successful; false otherwise.
virtual bool setToken(const DtString &token, const DtString value)
identifies a token and returns true if the value can be set to it, false otherwise ...
Definition: rpfPaperMapRecord.h:21
DtString myType
Definition: rpfPaperMapRecord.h:69
Definition: paperMapRecord.h:22
virtual DtString recordTypeName() const
Returns the type name for the particular record. Descendants should have this method return some stri...
static DtMetafileRecord * create()
virtual DtPaperMapRecord * clone()
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
DtString myResolution
Definition: rpfPaperMapRecord.h:70
Definition: metafileRecord.h:28
static const DtString theParameterType
Definition: rpfPaperMapRecord.h:71

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)