VR-Forces 4.10 Class Documentation
 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) 2006 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();
27 
28  // copy constructor
30 
31  // assignment operator
33 
34  // Returns "mft".
35  virtual DtString recordTypeName() const;
36 
37  // Read self from stream.
38  virtual bool get(std::istream& stream);
39 
40  // identifies a token or passes it to the parent class.
41  virtual bool processToken(std::istream& stream, DtString& token);
42 
43  static DtMetafileRecord* create();
44 
45 protected:
46  // Write self to stream
47  virtual bool writeAttributes(std::ostream& stream) const;
48  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
49  virtual bool setToken(const DtString& token, const DtString value);
50 protected:
51 
52  static const DtString theParameterFile;
53 
54 };
55 
56 #endif
57 
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record's attribute, returns its value in the 'value' parameter.
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 ...
virtual DtString recordTypeName() const =0
Returns the type name for the particular record.
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
Definition: metaFlightMetafileRecord.h:17
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
static const DtString theParameterFile
Definition: metaFlightMetafileRecord.h:52
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
This is the abstract base class for all terrain records in a metafile.
Definition: terrainMetafileRecord.h:23
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)