VR-Forces 4.6.1 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
kynPathDataMetafileRecord.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2006 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: $ $Revision: $ $State: $
7
*******************************************************************************/
8
11
12
#ifndef kynPathDataMetafileRec_h
13
#define kynPathDataMetafileRec_h
14
15
#include "
terrainDbFactory/additionalDataRecord.h
"
16
#include <iosfwd>
17
#include <list>
18
#include "
terrainDbFactory/terrainDefines.h
"
19
20
class
DtKynPathDataMetafileRecord
;
21
22
typedef
void (*
DtKynPathDataMetafileRecordCallback
)(
DtKynPathDataMetafileRecord
* record,
23
void
* usr);
24
25
class
DT_DLL_terrainDbFactory
DtKynPathDataMetafileRecord
:
public
DtAdditionalDataRecord
26
{
27
public
:
28
30
DtKynPathDataMetafileRecord
();
31
33
virtual
~
DtKynPathDataMetafileRecord
();
34
36
DtKynPathDataMetafileRecord
(
const
DtKynPathDataMetafileRecord
& orig);
37
39
DtKynPathDataMetafileRecord
&
operator=
(
const
DtKynPathDataMetafileRecord
& orig);
40
42
virtual
bool
init
();
43
46
virtual
bool
get
(std::istream&
stream
);
47
48
// identifies a token or passes it to the base class.
49
virtual
bool
processToken
(std::istream&
stream
,
DtString
& token);
50
54
virtual
DtString
recordTypeName
()
const
;
55
56
// \return true.
57
virtual
bool
includeInMtd
()
const
;
58
59
virtual
void
setPDGName(
const
DtString
& name);
60
virtual
DtString
PDGName()
const
;
61
virtual
void
setPDGPath(
const
DtString
& path);
62
virtual
DtString
PDGPath()
const
;
63
virtual
void
setRelativePathCheck(
const
bool
arg);
64
virtual
bool
RelativePathCheck()
const
;
65
virtual
void
setPDGType(
const
DtString
& type);
66
virtual
DtString
PDGType()
const
;
67
virtual
void
setObjectType(
const
DtString
& objectType);
68
virtual
DtString
objectType()
const
;
69
75
static
void
addPostReadCallback(
DtKynPathDataMetafileRecordCallback
,
void
* usr);
76
static
void
removePostReadCallback(
DtKynPathDataMetafileRecordCallback
,
void
* usr);
78
79
static
DtMetafileRecord
* create();
80
81
protected
:
82
// Write self to stream.
83
virtual
bool
writeAttributes
(std::ostream& stream)
const
;
84
virtual
bool
getAttribute
(
const
DtString
attrName,
DtString
& value,
unsigned
index=0);
85
virtual
bool
setToken
(
const
DtString
& token,
const
DtString
value);
86
87
// Invokes all the postReadCallbacks currently on the list passing 'this'
88
// as the argument.
89
virtual
void
invokePostReadCallbacks();
90
91
protected
:
92
static
const
DtString
thePDGName
;
93
static
const
DtString
thePDGPath
;
94
static
const
DtString
theRelativePathCheck
;
95
static
const
DtString
thePathDataType
;
96
static
const
DtString
theObjectType
;
97
98
DtString
myPDGName
;
99
DtString
myPDGPath
;
100
bool
myRelativePathCheck
;
101
DtString
myPathDataType
;
102
DtString
myObjectType
;
103
104
typedef
std::pair<DtKynPathDataMetafileRecordCallback, void*>
DtCallbackInfo
;
105
typedef
std::list<DtCallbackInfo>
DtCallbackInfoList
;
106
static
DtCallbackInfoList
thePostReadCallbackList
;
107
};
108
109
#endif
Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (
www.mak.com
)