15 : myUUID(
DtUUID::nullUUID())
16 , myForceType(DtForceOther)
24 , myMarkingText(orig.myMarkingText)
25 , myEntityType(orig.myEntityType)
26 , myForceType(orig.myForceType)
27 , myAppearanceBits(orig.myAppearanceBits)
28 , myEntityIdentifier(orig.myEntityIdentifier)
29 , myGlobalId(orig.myGlobalId)
30 , myIsLocal(orig.myIsLocal)
59 DtString myMarkingText;
60 DtEntityType myEntityType;
61 DtForceType myForceType;
62 UInt32 myAppearanceBits;
63 DtEntityIdentifier myEntityIdentifier;
76 : DtSimulatedObjectStateComponent(sd)
95 const bool& isLocal()
const;
96 void setIsLocal(
const bool&);
98 const DtUUID& uuid()
const;
99 void setUUID(
const DtUUID&);
101 const DtString& markingText()
const;
102 void setMarkingText(
const DtString&);
104 const DtForceType forceType()
const;
105 void setForceType(
const DtForceType&);
107 const UInt32 appearanceBits()
const;
108 void setAppearanceBits(
const UInt32&);
110 const DtEntityType entityType()
const;
111 void setEntityType(
const DtEntityType&);
113 const DtEntityIdentifier& entityId()
const;
114 void setEntityId(
const DtEntityIdentifier&);
132 const bool& isLocal()
const;
133 const DtUUID& uuid()
const;
134 const DtString& markingText()
const;
135 const DtForceType forceType()
const;
136 const UInt32 appearanceBits()
const;
137 const DtEntityType entityType()
const;
138 const DtEntityIdentifier& entityId()
const;
164 if (myNextFrameState.isWritable())
166 myCurrentFrameState.advanceFrame(myNextFrameState.frameState());
169 myCurrentFrameState.emitComponentUpdated();
174 myCurrentFrameState.updateStateData(sd);
175 myNextFrameState.updateStateData(sd);
181 myCurrentFrameState.aboutToBeDeleted();
182 myNextFrameState.aboutToBeDeleted();
185 virtual void addAdditionalStateComponents()
override;
UUID is a unique ID wrapper class.
Definition: uuid.h:59
unsigned int UInt32
Definition: stateDataTypes.h:18
DtMetocStateComponentData myData
Definition: metocServiceStateComponent.h:146
bool isDoubleBuffered()
Definition: metocServiceStateComponent.h:157
bool myIsLocal
Definition: metocServiceStateComponent.h:65
2) Define the next frame class. This will be used for write access.
Definition: metocServiceStateComponent.h:84
Definition: stateComponent.h:266
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
void updateDataStorage()
Implement to update data storage. Called from advanceFrame.
Definition: metocServiceStateComponent.h:162
DtString myGlobalId
Definition: metocServiceStateComponent.h:64
const DtMetocStateComponentData & frameState() const
Current frame state only can access current frame buffers. This ensures thread safety.
Definition: metocServiceStateComponent.h:129
DtMetocStateComponentData myData
Definition: metocServiceStateComponent.h:119
virtual void aboutToBeDeleted() override
Definition: metocServiceStateComponent.h:178
DtMetocStateComponentData()
Definition: metocServiceStateComponent.h:14
Definition: objectType.h:27
DtEntityType myEntityType
Definition: metocServiceStateComponent.h:60
DtString myMarkingText
Definition: metocServiceStateComponent.h:59
const DtMetocStateComponentData & frameState() const
Definition: metocServiceStateComponent.h:89
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:339
DtEntityIdentifier myEntityIdentifier
Definition: metocServiceStateComponent.h:63
#define DEFINE_STATE_COMPONENT_TYPE(CreatedComponent)
Definition: stateComponent.h:228
DtMetocStateComponentData & operator=(const DtMetocStateComponentData &rhs)
Definition: metocServiceStateComponent.h:34
virtual bool mainComponentOnLegion() const override
Definition: metocServiceStateComponent.h:80
Subclass from this to indicate that this will be a double buffered state component.
Definition: stateComponent.h:379
DtStateComponentCreator< DtMetocServiceStateComponentImplementation > DtMetocServiceStateComponentCreator
5) Define the creator. This will need to be registered with the REGISTER_STATE_COMPONENT macro in the...
Definition: metocServiceStateComponent.h:194
virtual void aboutToBeDeleted()
virtual const DtFrameStateInterface * nextFrameState() const
Definition: metocServiceStateComponent.h:160
4) Define the state component that will contain the wrappers to the next and current frame states tha...
Definition: metocServiceStateComponent.h:151
DtMetocServiceStateComponentNextFrame myNextFrameState
Definition: metocServiceStateComponent.h:189
DtForceType myForceType
Definition: metocServiceStateComponent.h:61
#define DEFINE_ACCESSOR_MUTATOR(ReturnType, Accessor, Mutator)
Definition: doubleBufferedDataStorage.h:23
DtUUID myUUID
Definition: metocServiceStateComponent.h:58
const DtFrameStateInterface * currentFrameState() const
Definition: metocServiceStateComponent.h:158
DtMetocStateComponentData & frameState()
Definition: metocServiceStateComponent.h:90
UInt32 myAppearanceBits
Definition: metocServiceStateComponent.h:62
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:26
Definition: stateComponent.h:65
3) Define the current frame class. This will be used for read access.
Definition: metocServiceStateComponent.h:123
DtMetocServiceStateComponentCurrentFrame myCurrentFrameState
Definition: metocServiceStateComponent.h:188
Definition: metocServiceStateComponent.h:12
This is a simple base class that will be used to return a pointer to current or next frame state...
Definition: stateComponent.h:291
1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented)
Definition: metocServiceStateComponent.h:70
void updateStateData(DtStateData *sd) override
Implement to update data storage to the new state data.
Definition: metocServiceStateComponent.h:172
virtual DtFrameStateInterface * nextFrameState()
Definition: metocServiceStateComponent.h:159
DtMetocStateComponentData(const DtMetocStateComponentData &orig)
Definition: metocServiceStateComponent.h:22