24class DtReflectedExtEntityList;
27class DtReflectedExtEntity;
55 DtPlayerStationApp* app, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection* connection)
override;
60 virtual void tick()
override;
89 virtual DtReflectedExtEntity*
findEntity(DtEntityIdentifier entityId);
99 template <
typename ValueType,
typename MessageType>
112 template <
typename RwType,
typename ValueType,
typename MessageType>
131 DtReflectedExtEntity* entity,
const std::string&
name,
const std::string&
type);
Base class for all simulation event connectors in VREngage.
Definition simEventConnector.h:54
virtual DtConnectorType type()
Gets the connector type.
Definition connector.h:58
virtual std::string name()
Gets the connector name.
Definition connector.h:64
DtExtendedStateConnector()
Default constructor.
void sendAttributeMessage(const std::string &name, ValueType value, const DtEntityIdentifier &entityId)
Sends an attribute message with a specific value type.
virtual void shutdown() override
Shuts down the extended state connector.
std::set< std::string > myMissingStateProperties
Cache for extended state data that is missing.
Definition extendedStateConnector.h:161
DtEntityIdentifier myEntityId
Entity identifier for the monitored entity.
Definition extendedStateConnector.h:149
std::map< std::string, std::string > myPropertyTypeMap
Mapping of property names to their types.
Definition extendedStateConnector.h:146
bool sendStatePropertyMessage(DtReflectedExtEntity *entity, const std::string &name)
Sends a state property message with type conversion.
void logMissingStateProperty(const std::string &name, const std::string &type)
Logs a warning about missing extended state data.
virtual ~DtExtendedStateConnector() override
Virtual destructor.
virtual DtVreMessageResult handleExtendedRequest(DtVreMessage *msg)
Handles requests for extended state properties.
virtual DtVreMessageResult handleExtendedInit(DtVreMessage *msg)
Handles initialization of extended state monitoring.
virtual void sendExtendedDataMessage(DtReflectedExtEntity *entity, const std::string &name, const std::string &type)
Sends an extended data message for a specific entity.
virtual bool sendStatePropertyMessage(DtReflectedExtEntity *entity, const std::string &name, const std::string &type)
Sends a state property message with type dispatching.
DtGlobalObjectDesignator myGlobalId
Global object designator for the monitored entity.
Definition extendedStateConnector.h:152
DtReflectedExtEntityList * myRel
Pointer to the reflected extended entity list.
Definition extendedStateConnector.h:155
virtual DtReflectedExtEntity * findEntity(DtEntityIdentifier entityId)
Finds an extended entity by its identifier.
std::map< std::string, std::string > myNameTypeMap
Mapping of state names to their types.
Definition extendedStateConnector.h:143
virtual void tick() override
Performs periodic processing of entity state updates.
virtual void install(DtPlayerStationApp *app, makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection *connection) override
Installs the extended state connector with the application and connection.
Top-level class representing the VR-Engage application.
Definition playerStationApp.h:163
Abstract base class for all VREngage messages.
Definition vreMessage.h:50
Defines export macros and protocol namespace for vrePlayerStationConnector.
#define VRL_DLL
Empty definition for non-Windows platforms.
Definition export.h:52
Include export definitions for this library.
Definition glsVreMessageUtil.h:49
DtVreMessageResult
Enumeration of possible message handling results.
Definition vreMessage.h:33
Defines the base DtSimEventConnector class for VREngage simulation events.
Defines the base class for all VREngage messages.