VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
dfadMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: dfadRec.h,v $ $Revision: 1.12 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef dfadMetafileRecord_H_
9 #define dfadMetafileRecord_H_
10 
11 // \file dfadRec.h
12 // \brief Contains the DtDfadMetafileRecord class declaration.
15 #include <iosfwd>
16 
17 //
18 // DtDfadMetafileRecord represents the parameters that can be specified in a
19 // DfadMetafileRecord, usually in a .map file, which is used to specify how and
20 // what dfad files to import into a terrain.
22 {
23 
24 public:
25 
26  // default constructor.
28 
29  // destructor
30  virtual ~DtDfadMetafileRecord() override;
31 
32  // copy constructor
34 
35  // assignment operator
37 
38  // Returns "dfad".
39  virtual DtString recordTypeName() const override;
40 
41  // Read self from stream.
42  virtual bool get(std::istream &stream) override;
43 
44  // identifies a token or passes it to the parent class.
45  virtual bool processToken(std::istream &stream, DtString &token) override;
46 
47  static DtMetafileRecord* create();
48 
49 protected:
50 
51  // Write self to stream.
52  virtual bool writeAttributes(std::ostream &stream) const override;
53  virtual bool getAttribute(const DtString attrName, DtString &value,
54  unsigned index = 0) override;
55  virtual bool setToken(const DtString &token, const DtString value) override;
56 
57 protected:
58 
66  static const DtString theDatumShift;
69 };
70 
71 #endif
72 
static const DtString theParameterFidSmcFilename
Definition: dfadMetafileRecord.h:61
Definition: vectorDataRecord.h:24
static const DtString theParameterFilename
Definition: dfadMetafileRecord.h:59
static const DtString theDatumShift
Definition: dfadMetafileRecord.h:66
static const DtString theParameterColorFilename
Definition: dfadMetafileRecord.h:63
static const DtString theRefInverseFlattening
Definition: dfadMetafileRecord.h:68
static const DtString theParameterImportFilename
Definition: dfadMetafileRecord.h:60
static const DtString theRefEllipsoidMinor
Definition: dfadMetafileRecord.h:65
virtual bool processToken(std::istream &stream, DtString &token) override
identifies a token or passes token the parent class.
static const DtString theRefEllipsoidMajor
Definition: dfadMetafileRecord.h:64
DtVectorDataRecord & operator=(const DtVectorDataRecord &rhs)
static DtMetafileRecord * create()
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
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 ...
Definition: metafileRecord.h:28
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.
static const DtString theParameterDfadSedrisFilename
Definition: dfadMetafileRecord.h:62
Definition: dfadMetafileRecord.h:21
virtual DtString recordTypeName() const override
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theProjectionCentralScale
Definition: dfadMetafileRecord.h:67

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)