VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
3DViewMetafileRecord.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1998 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: 3DViewMfRec.h,v $ $Revision: 1.1 $ $State: Exp $
7 ** Created: 11/25/07 JAT, Updated:
8 *******************************************************************************/
9 #ifndef ThreeDViewMfRec_H_
10 #define ThreeDViewMfRec_H_
11 
14 
15 // The Dt3DViewMetafileRecord record specifies the terrain file(s) to load by 3DVRForces.
17 {
18 
19 public:
20 
23 
25  virtual ~Dt3DViewMetafileRecord();
26 
29 
32 
34  virtual DtString recordTypeName() const;
35 
37  virtual DtConfigCategoryType recordCategory() const;
38 
40  virtual const DtFilename& filename() const;
41 
43  virtual void setFilename(const DtFilename & name);
44 
46  virtual bool get(std::istream& stream);
47 
49  virtual bool processToken(std::istream& stream, DtString& token);
50 
51  static DtMetafileRecord* create();
52 
53 protected:
54 
55  // Write self to stream.
56  virtual bool writeAttributes(std::ostream& stream) const;
57  virtual bool getAttribute(const DtString attrName, DtString& value, unsigned index=0);
58  virtual bool setToken(const DtString& token, const DtString value);
59 
60 protected:
61 
62  static const DtString theParameterFile;
63  DtFilename myFile;
64 
65 };
66 
67 #endif
68 
DtConfigCategoryType
Definition: terrainDefines.h:19
static const DtString theParameterFile
Definition: 3DViewMetafileRecord.h:62
const char * filename
Definition: ioapi.h:38
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 bool getAttribute(const DtString attrName, DtString &value, DtString &type, unsigned index=0)
Given the name of a record's attribute, returns True if the record has the attribute (the value is re...
DtFilename myFile
Definition: 3DViewMetafileRecord.h:63
virtual DtString recordTypeName() const =0
Returns the type name for the particular record.
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
virtual DtConfigCategoryType recordCategory() const =0
Each record should have a category of configuration they represent.
#define DT_DLL_terrainDbFactory
Definition: terrainDbFactoryDefines.h:23
voidpf stream
Definition: ioapi.h:39
Definition: metafileRecord.h:28
Definition: 3DViewMetafileRecord.h:16
DtMetafileRecord & operator=(const DtMetafileRecord &orig)
assignment operator

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)