|
VR-Engage
2.3
|
DtConnector serves as the foundation for all connector classes that interface with external simulation protocols. Connectors are responsible for translating between internal VR-Engage messages and protocol-specific data formats. Each supported protocol (DIS, HLA, etc.) has its own connector implementation.
#include <connector.h>
Public Types | |
| enum | DtConnectorType { DIS , HLA13 , HLA1516 , HLA1516E , HLA4 } |
Public Member Functions | |
| DtConnector () | |
| virtual | ~DtConnector () |
| virtual DtConnectorType | type () |
| virtual std::string | name () |
Static Public Member Functions | |
| static std::string | extension (DtConnectorType type) |
Protected Attributes | |
| std::string | myName |
| DtConnectorType | myType |
| DtAttributeCallbackManager | myAttributeCallbacks |
| DtVreMessageHandlerGroup | myMessageHandlers |
Enumeration of supported connector types.
Defines the simulation protocols supported by VR-Engage.
| makVre::DtConnector::DtConnector | ( | ) |
Constructor.
Creates a connector instance with default values.
|
virtual |
Virtual destructor.
Ensures proper cleanup of derived connector classes.
|
inlinevirtual |
Gets the connector type.
Returns the protocol type this connector implements.
References myType.
Referenced by extension().
|
inlinevirtual |
Gets the connector name.
Returns the name of this connector instance.
References myName.
Referenced by makVre::DtOwnshipCreationConnector::handleLocalEntityCreated(), and makVre::DtOwnshipCreationConnector::localEntityCreatedCallback().
|
static |
Gets the file extension for a specific connector type.
| type | The connector type to get the extension for |
Returns the standard file extension associated with the specified connector type (protocol). Used for identifying protocol-specific files.
References type().
|
protected |
Connector instance name.
Referenced by name().
|
protected |
Connector type (protocol)
Referenced by type().
|
protected |
Member-scope instance of Attribute callback manager.
Used to manage Attribute change callback connections and ensure that all callbacks are unregistered when this class instance is destroyed.
|
protected |
Member-scope instance of message handler group.
Used to manage message handler connections for this component. Handlers connected through this group will be automatically disconnected when this component is destroyed.