VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrfmsgs
ifModVrfOvl.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2003 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: ifModVrfOvl.h,v $ $Revision: 1.9 $ $State: Exp $
7
*******************************************************************************/
8
11
12
#ifndef DtIfModifyVrfOverlay_H_
13
#define DtIfModifyVrfOverlay_H_
14
15
#include <
vrfExtProtocol/ifaceCont.h
>
16
#include <vlutil/vlString.h>
17
#include <
vrfExtProtocol/objType.h
>
18
#include <vlpi/entityIdentifier.h>
19
22
23
#define DtModifyOverlayAll 0x00000000
24
#define DtModifyOverlayColor 0x00000001
25
#define DtModifyOverlayParent 0x00000002
26
#define DtModifyOverlayUserData 0x00000004
27
#define DtModifyOverlayAttachedTo 0x00000008
28
29
struct
DtNetIfModifyVrfOverlay
30
{
31
DtNetEntityIdentifier
myObjectIdentifier
;
32
DtNetU32
myColor
;
33
DtNetU8
myParentLength
;
34
DtNetU32
myUserDataLen
;
35
DtNetU8
myAttachToLength
;
36
DtNetU8
myKeepExistingAttachment
;
37
DtNetU8
myModificationFlags
;
38
};
39
60
#include "
vrfmsgs/vrfmsgsDefines.h
"
61
class
DT_DLL_vrfmsgs
DtIfModifyVrfOverlay
:
public
DtSimInterfaceContent
62
{
63
public
:
64
66
DtIfModifyVrfOverlay
();
67
69
virtual
~
DtIfModifyVrfOverlay
();
70
72
DtIfModifyVrfOverlay
(
const
DtIfModifyVrfOverlay
& orig);
73
75
DtIfModifyVrfOverlay
&
operator=
(
const
DtIfModifyVrfOverlay
& orig);
76
78
virtual
DtSimInterfaceContent
*
clone
()
const
;
79
82
virtual
int
type
()
const
;
83
85
virtual
void
setObjectIdentifier(
const
DtEntityIdentifier& objectIdentifier);
86
virtual
const
DtEntityIdentifier & objectIdentifier()
const
;
87
88
virtual
int
netRepSize
()
const
;
89
virtual
bool
setFromNet
(
const
char
* contentBuffer,
90
unsigned
contentSize);
91
virtual
bool
setToNet
();
92
93
virtual
void
setUserData(
char
* userData,
int
iLen);
94
virtual
const
char
* userData()
const
;
95
virtual
int
userDataLen()
const
;
96
97
virtual
char
modificationFlags()
const
;
98
99
bool
modifyColor()
const
;
100
bool
modifyParent()
const
;
101
bool
modifyUserData()
const
;
102
bool
modifyAttachedTo()
const
;
103
104
virtual
void
printDataToString
(
DtString
& str);
105
106
static
DtSimInterfaceContent
* creator();
107
108
public
:
113
115
virtual
void
setParentName(
const
DtString
& parentName);
116
virtual
const
DtString
& parentName()
const
;
117
119
virtual
void
setAttachmentInfo(
const
DtString
& attachName,
bool
keepExisting);
120
virtual
const
DtString
& attachmentName()
const
;
121
virtual
bool
keepExistingAttachment()
const
;
122
124
virtual
void
setColor(
int
color);
125
virtual
int
color()
const
;
126
127
protected
:
128
129
DtEntityIdentifier
myObjectIdentifier
;
130
131
DtString
myParentName
;
132
DtString
myAttachmentName
;
133
bool
myKeepExistingAttachment
;
134
int
myColor
;
135
136
char
*
myUserData
;
137
int
myUserDataLen
;
138
139
char
myModificationFlags
;
140
};
141
142
inline
char
DtIfModifyVrfOverlay::modificationFlags
()
const
143
{
144
return
myModificationFlags
;
145
}
146
147
inline
bool
DtIfModifyVrfOverlay::modifyColor
()
const
148
{
149
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
150
((
myModificationFlags
&
DtModifyOverlayColor
) != 0));
151
}
152
153
inline
bool
DtIfModifyVrfOverlay::modifyParent
()
const
154
{
155
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
156
((
myModificationFlags
&
DtModifyOverlayParent
) != 0));
157
}
158
159
inline
bool
DtIfModifyVrfOverlay::modifyUserData
()
const
160
{
161
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
162
((
myModificationFlags
&
DtModifyOverlayUserData
) != 0));
163
}
164
165
inline
bool
DtIfModifyVrfOverlay::modifyAttachedTo
()
const
166
{
167
return
((
myModificationFlags
==
DtModifyOverlayAll
) ||
168
((
myModificationFlags
&
DtModifyOverlayAttachedTo
) != 0));
169
}
170
171
#endif
172
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)