VR-Forces Developer's Guide
Home
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
terrainDbFactory
gdbMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: gdbMfRec.h,v $ $Revision: 1.14 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef gdbMetafileRecord_H_
9
#define gdbMetafileRecord_H_
10
11
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
12
#include "
terrainDbFactory/terrainMetafileRecord.h
"
13
14
15
// The DtGdbMetafile record specifies the gdb file(s) to load and how to load them.
16
class
DT_DLL_terrainDbFactory
DtGdbMetafileRecord
:
public
DtTerrainMetafileRecord
17
{
18
19
public
:
20
21
// default constructor.
22
DtGdbMetafileRecord
();
23
24
// destructor
25
virtual
~
DtGdbMetafileRecord
();
26
27
// copy constructor
28
DtGdbMetafileRecord
(
const
DtGdbMetafileRecord
& orig);
29
30
// assignment operator
31
DtGdbMetafileRecord
&
operator=
(
const
DtGdbMetafileRecord
& orig);
32
33
// Returns "gdb".
34
virtual
DtString
recordTypeName
()
const
;
35
36
// Read self from stream.
37
virtual
bool
get
(std::istream&
stream
);
38
39
// identifies a token or passes it to the parent class.
40
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
41
42
static
DtMetafileRecord
* create();
43
44
protected
:
45
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
51
protected
:
52
53
static
const
DtString
theParameterFile
;
54
static
const
DtString
theCreateMasterTerrainFile
;
55
static
const
DtString
theMergeIntoSingleTerrainFile
;
56
57
};
58
59
#endif
60
DtGdbMetafileRecord
Definition:
gdbMetafileRecord.h:16
terrainDbFactoryDefines.h
DtTerrainMetafileRecord::getAttribute
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. Returns True if successful; false otherwise.
DtTerrainMetafileRecord::setToken
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 ...
DtGdbMetafileRecord::theCreateMasterTerrainFile
static const DtString theCreateMasterTerrainFile
Definition:
gdbMetafileRecord.h:54
DtMetafileRecord::recordTypeName
virtual DtString recordTypeName() const =0
Returns the type name for the particular record. Descendants should have this method return some stri...
DtTerrainMetafileRecord::writeAttributes
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
DtGdbMetafileRecord::theParameterFile
static const DtString theParameterFile
Definition:
gdbMetafileRecord.h:53
DtGdbMetafileRecord::theMergeIntoSingleTerrainFile
static const DtString theMergeIntoSingleTerrainFile
Definition:
gdbMetafileRecord.h:55
DtTerrainMetafileRecord::processToken
virtual bool processToken(std::istream &stream, DtString &token)
Identifies a token or passes it to the parent class.
terrainMetafileRecord.h
DT_DLL_terrainDbFactory
#define DT_DLL_terrainDbFactory
Definition:
terrainDbFactoryDefines.h:23
stream
voidpf stream
Definition:
ioapi.h:39
DtMetafileRecord
Definition:
metafileRecord.h:28
DtTerrainMetafileRecord
This is the abstract base class for all terrain records in a metafile.
Definition:
terrainMetafileRecord.h:23
DtString
DtTerrainMetafileRecord::operator=
DtTerrainMetafileRecord & operator=(const DtTerrainMetafileRecord &orig)
assignment operator
Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (
www.mak.com
)