VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
c4bMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: c4bMfRec.h,v $ $Revision: 1.11 $ $State: Exp $
7 *******************************************************************************/
8 #ifndef c4bMetafileRecord_H_
9 #define c4bMetafileRecord_H_
10 
13 
16 #include <iosfwd>
17 
22 {
23 
24 public:
25 
28 
30  virtual ~DtC4bMetafileRecord();
31 
34 
37 
39  virtual DtString recordTypeName() const;
40 
42  virtual bool get(std::istream& stream);
43 
45  virtual bool processToken(std::istream& stream, DtString& token);
46 
47  static DtMetafileRecord* create();
48 
49 protected:
50 
51  virtual bool writeAttributes(std::ostream& stream) const;
52 
53  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
54 
55  virtual bool setToken(const DtString& token, const DtString value);
56 
57 protected:
58 
59  static const DtString theParameterFile;
60 
61 };
62 
63 #endif
64 
virtual bool getAttribute(const DtString attrName, DtString &value, unsigned index=0)
Given the name of a record&#39;s attribute, returns its value in the &#39;value&#39; 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)
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
file .h
Definition: c4bMetafileRecord.h:21
#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
static const DtString theParameterFile
Definition: c4bMetafileRecord.h:59

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)