VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
asciiMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: asciiMfRec.h,v $ $Revision: 1.13 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef asciiMetafileRecord_H_
9 #define asciiMetafileRecord_H_
10 
13 #include <vlutil/vlFilename.h>
14 #include <iosfwd>
15 
16 
17 //
18 // The ascii metafile record has a list of individual ascii files, and also a
19 // post spacing parameter, used to control the resolution of the map.
21 {
22 
23 public:
24 
25  // default constructor.
27 
28  // destructor
29  virtual ~DtAsciiMetafileRecord() override;
30 
31  // copy constructor
33 
34  // assignment operator
36 
37  // Returns "ascii".
38  virtual DtString recordTypeName() const override;
39 
40  // Read self from stream.
41  virtual bool get(std::istream &stream) override;
42 
43  // reads in the next value from the stream and associates it with
44  // the token.
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 
61  static const DtString theIsProjected;
62  static const DtString theTriangles;
63  static const DtString theVertices;
64  static const DtString theOrigin;
68  static const DtString theFilename;
69  static const DtString theThreshold;
71  static const DtString theHasSoilTypes;
72  static const DtString theIndexFromZero;
73 };
74 
75 #endif
76 
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
static const DtString theIndexFromZero
Definition: asciiMetafileRecord.h:72
static const DtString theIsProjected
Definition: asciiMetafileRecord.h:61
static const DtString theIsTriangulated
Definition: asciiMetafileRecord.h:60
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
static const DtString theFilename
Definition: asciiMetafileRecord.h:68
static const DtString theParameterPostSpacing
Definition: asciiMetafileRecord.h:59
static const DtString theThreshold
Definition: asciiMetafileRecord.h:69
static const DtString theTriangles
Definition: asciiMetafileRecord.h:62
static const DtString theFilesConfiguration
Definition: asciiMetafileRecord.h:70
static const DtString theMinMaxLatitude
Definition: asciiMetafileRecord.h:65
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
static const DtString theHasSoilTypes
Definition: asciiMetafileRecord.h:71
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 ...
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
static const DtString theMinMaxLongitude
Definition: asciiMetafileRecord.h:66
static const DtString theIsSeaRectangleAdded
Definition: asciiMetafileRecord.h:67
static const DtString theVertices
Definition: asciiMetafileRecord.h:63
virtual bool processToken(std::istream &stream, DtString &token) override
Identifies a token or passes it to the parent class.
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
Definition: asciiMetafileRecord.h:20
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
static const DtString theOrigin
Definition: asciiMetafileRecord.h:64
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.

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)