VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
metaFlightMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: mftMfRec.h,v $ $Revision: 1.2 $ $State: Exp $
7 ** Created: 5/4/06 JAT, Updated: 5/4/06
8 *******************************************************************************/
9 #ifndef metaFlightMetafileRecord_H_
10 #define metaFlightMetafileRecord_H_
11 
14 
15 
16 // Use this metafile record to define terrain database in MetaFlight format
18 {
19 
20 public:
21 
22  // default constructor.
24 
25  // destructor
26  virtual ~DtMetaFlightMetafileRecord() override;
27 
28  // copy constructor
30 
31  // assignment operator
33 
34  // Returns "mft".
35  virtual DtString recordTypeName() const override;
36 
37  // Read self from stream.
38  virtual bool get(std::istream &stream) override;
39 
40  // identifies a token or passes it to the parent class.
41  virtual bool processToken(std::istream &stream, DtString &token) override;
42 
43  static DtMetafileRecord* create();
44 
45 protected:
46  // Write self to stream
47  virtual bool writeAttributes(std::ostream &stream) const override;
48  virtual bool getAttribute(const DtString attrName, DtString &value,
49  unsigned index = 0) override;
50  virtual bool setToken(const DtString &token, const DtString value) override;
51 protected:
52 
53  static const DtString theParameterFile;
54 
55 };
56 
57 #endif
58 
virtual bool writeAttributes(std::ostream &stream) const override
Write attributes to stream. This is called by put(stream)
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
Definition: metaFlightMetafileRecord.h:17
static const DtString theParameterFile
Definition: metaFlightMetafileRecord.h:53
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
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
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
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0) override
Given the name of a record's attribute, returns its value in the 'value' 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)