|
VR-Engage
2.2
|
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 |
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(), makVre::DtExtendedStateConnector::logMissingStateProperty(), makVre::DtExtendedStateConnector::sendExtendedDataMessage(), and makVre::DtExtendedStateConnector::sendStatePropertyMessage().
|
inlinevirtual |
Gets the connector name.
Returns the name of this connector instance.
References myName.
Referenced by makVre::DtVrfRemoteControlConnector::handleLocalEntityCreated(), makVre::DtExtendedStateConnector::logMissingStateProperty(), makVre::DtExtendedStateConnector::sendAttributeMessage(), makVre::DtExtendedStateConnector::sendExtendedDataMessage(), makVre::DtExtendedStateConnector::sendStatePropertyMessage(), and makVre::DtExtendedStateConnector::sendStatePropertyMessage().
|
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().