VR-Forces 4.7 Class Documentation
 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 

Document ID: Generated on Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)