VR-Forces 4.1 Class Documentation
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 
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 
30 {
31  DtNetEntityIdentifier myObjectIdentifier;
32  DtNetU32 myColor;
33  DtNetU8 myParentLength;
34  DtNetU32 myUserDataLen;
35  DtNetU8 myAttachToLength;
38 };
39 
60 #include "vrfmsgs/vrfmsgsDefines.h"
62 {
63 public:
64 
67 
69  virtual ~DtIfModifyVrfOverlay();
70 
73 
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 
134  int myColor;
135 
136  char* myUserData;
138 
140 };
141 
143 {
144  return myModificationFlags;
145 }
146 
148 {
151 }
152 
154 {
157 }
158 
160 {
163 }
164 
166 {
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)