VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simulatedObjectStateComponent.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2021 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <vrfutil/rwUUID.h>
11 #include <vlpi/entityIdentifier.h>
12 #include <vlpi/entityType.h>
13 
14 #include <boost/signals2.hpp>
15 
16 namespace makVrf
17 {
22  {
23  public:
27 
31  static const char* StringType() { return "IdentificationStateComponent"; }
32 
38  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(bool, isLocal, IsLocal)
40  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(bool, checkForNameReservation, CheckForNameReservation)
44  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtString, markingText, MarkingText)
46  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtForceType, forceType, ForceType)
48  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(UInt32, appearanceBits, AppearanceBits)
50  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtEntityType, entityType, EntityType)
52  UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(DtEntityIdentifier, entityId, EntityId)
54  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(UInt64, userLongLongData, UserLongLongData)
56  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(UInt64, orbatId, OrbatId)
58  UNDEFINED_RETURNVALUE_ACCESSOR(DtEntityType, objectType)
60  UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(DtSimulationAddress, simEngineAddress, SimEngineAddress)
61 
63  mutable boost::signals2::signal<void (const DtUUID&, const DtUUID&, makVrf::SimStateID)> signal_uuidChanged;
65  mutable boost::signals2::signal<void (const DtString&, const DtString&, makVrf::SimStateID)> signal_markingTextChanged;
67  mutable boost::signals2::signal<void (int oldForce, int newForce, makVrf::SimStateID)> signal_forceChanged;
69  mutable boost::signals2::signal<void (const DtSimulationAddress& oldAddress, const DtSimulationAddress& newAddress, makVrf::SimStateID)> signal_simEngineAddressChanged;
70 
72  virtual bool mainComponentOnLegion() const { return true; };
73  };
74 }
unsigned int StateComponentType
Definition: stateComponent.h:56
UUID is a unique ID wrapper class.
Definition: uuid.h:59
unsigned long long SimStateID
Unique identifier for a simulation state instance.
Definition: stateDataTypes.h:17
static const char * StringType()
Returns the string type name used for identification purposes.
Definition: simulatedObjectStateComponent.h:31
unsigned int UInt32
32-bit unsigned integer type.
Definition: stateDataTypes.h:21
The DtSimulatedObjectStateComponent is an interface that all main components (those that are consider...
Definition: simulatedObjectStateComponent.h:21
#define UNDEFINED_RETURNVALUE_ACCESSOR(ReturnType, Member)
Defines a virtual const accessor that throws DtUnimplementedMethod, marking the method as requiring a...
Definition: doubleBufferedDataStorage.h:53
Contains the DtUUID class declaration.
unsigned long long UInt64
64-bit unsigned integer type.
Definition: stateDataTypes.h:19
The overall structure of the DtStateData mechanism is: The DtStateData contains a list of double buff...
Definition: stateData.h:513
#define UNDEFINED_RETURNVALUE_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual by-value accessor and an undefined virtual setter, both throwing DtUnimp...
Definition: doubleBufferedDataStorage.h:103
static DtStateComponent::StateComponentType ComponentType()
Returns the static state component type identifier for simulated objects.
Definition: simulatedObjectStateComponent.h:29
#define UNDEFINED_RETURNREF_ACCESSOR_MUTATOR(Type, Member, Set)
Defines an undefined virtual const-reference accessor and an undefined virtual setter, both throwing DtUnimplementedMethod and requiring overrides in a derived class.
Definition: doubleBufferedDataStorage.h:112
#define DT_DLL_vrfStateData
This file is used to determine how to build Disable inconsistent dll linkage warning Visual Studio 6...
Definition: vrfStateDataDefines.h:29
Contains the DtStateComponent class declaration.
Base interface for accessing current or next frame state in a double-buffered state component...
Definition: stateComponent.h:354

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)