VR-Forces 4.10 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
include
terrainDbFactory
dfdDfadMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 1998 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: dfdDfadRec.h,v $ $Revision: 1.12 $ $State: Exp $
7
*******************************************************************************/
8
#ifndef dfdDfadMetafileRecord_H_
9
#define dfdDfadMetafileRecord_H_
10
11
#include "
terrainDbFactory/terrainDbFactoryDefines.h
"
12
#include "
terrainDbFactory/dfadMetafileRecord.h
"
13
#include <iosfwd>
14
15
//
16
// DtDfdDfadMetafileRecord represents the parameters that can be specified in a
17
// DfdDfadMetafileRecord, usually in a .map file, which is used to specify how and
18
// what DFD files to import into a terrain.
19
class
DT_DLL_terrainDbFactory
DtDfdDfadMetafileRecord
:
public
DtDfadMetafileRecord
20
{
21
22
public
:
23
24
// default constructor.
25
DtDfdDfadMetafileRecord
();
26
27
// destructor
28
virtual
~
DtDfdDfadMetafileRecord
();
29
30
// copy constructor
31
DtDfdDfadMetafileRecord
(
const
DtDfdDfadMetafileRecord
& orig);
32
33
// assignment operator
34
DtDfdDfadMetafileRecord
&
operator=
(
const
DtDfdDfadMetafileRecord
& rhs);
35
36
// Returns "dfad".
37
virtual
DtString
recordTypeName
()
const
;
38
39
// Read self from stream.
40
virtual
bool
get
(std::istream&
stream
);
41
42
// identifies a token or passes it to the parent class.
43
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
44
45
static
DtMetafileRecord
*
create
();
46
47
protected
:
48
49
// Write self to stream.
50
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
51
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
52
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
53
54
55
};
56
57
#endif
58
terrainDbFactoryDefines.h
DtDfdDfadMetafileRecord
Definition:
dfdDfadMetafileRecord.h:19
DtDfadMetafileRecord::create
static DtMetafileRecord * create()
DtDfadMetafileRecord::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 ...
DtDfadMetafileRecord::recordTypeName
virtual DtString recordTypeName() const
Returns the type name for the particular record.
DtDfadMetafileRecord::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.
DT_DLL_terrainDbFactory
#define DT_DLL_terrainDbFactory
Definition:
terrainDbFactoryDefines.h:23
stream
voidpf stream
Definition:
ioapi.h:39
DtDfadMetafileRecord::processToken
virtual bool processToken(std::istream &stream, DtString &token)
identifies a token or passes token the parent class.
DtMetafileRecord
Definition:
metafileRecord.h:28
DtDfadMetafileRecord::writeAttributes
virtual bool writeAttributes(std::ostream &stream) const
Write attributes to stream. This is called by put(stream)
dfadMetafileRecord.h
DtString
DtDfadMetafileRecord::operator=
DtDfadMetafileRecord & operator=(const DtDfadMetafileRecord &rhs)
DtDfadMetafileRecord
Definition:
dfadMetafileRecord.h:21
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
)