VR-Engage  2.3
Loading...
Searching...
No Matches
makVre::DtConnector Class Reference

Detailed Description

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>

Inheritance diagram for makVre::DtConnector:
[legend]

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
 

Member Enumeration Documentation

◆ DtConnectorType

Enumeration of supported connector types.

Defines the simulation protocols supported by VR-Engage.

Enumerator
DIS 

Distributed Interactive Simulation protocol.

HLA13 

High Level Architecture 1.3 protocol.

HLA1516 

High Level Architecture 1516 protocol.

HLA1516E 

High Level Architecture 1516e protocol.

HLA4 

High Level Architecture 4 (2025) protocol.

Constructor & Destructor Documentation

◆ DtConnector()

makVre::DtConnector::DtConnector ( )

Constructor.

Creates a connector instance with default values.

◆ ~DtConnector()

virtual makVre::DtConnector::~DtConnector ( )
virtual

Virtual destructor.

Ensures proper cleanup of derived connector classes.

Member Function Documentation

◆ type()

virtual DtConnectorType makVre::DtConnector::type ( )
inlinevirtual

Gets the connector type.

Returns
The connector type (protocol) enumeration value

Returns the protocol type this connector implements.

References myType.

Referenced by extension().

◆ name()

virtual std::string makVre::DtConnector::name ( )
inlinevirtual

Gets the connector name.

Returns
String containing the connector name

Returns the name of this connector instance.

References myName.

Referenced by makVre::DtOwnshipCreationConnector::handleLocalEntityCreated(), and makVre::DtOwnshipCreationConnector::localEntityCreatedCallback().

◆ extension()

static std::string makVre::DtConnector::extension ( DtConnectorType type)
static

Gets the file extension for a specific connector type.

Parameters
typeThe connector type to get the extension for
Returns
String containing the file extension

Returns the standard file extension associated with the specified connector type (protocol). Used for identifying protocol-specific files.

References type().

Member Data Documentation

◆ myName

std::string makVre::DtConnector::myName
protected

Connector instance name.

Referenced by name().

◆ myType

DtConnectorType makVre::DtConnector::myType
protected

Connector type (protocol)

Referenced by type().

◆ myAttributeCallbacks

DtAttributeCallbackManager makVre::DtConnector::myAttributeCallbacks
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.

◆ myMessageHandlers

DtVreMessageHandlerGroup makVre::DtConnector::myMessageHandlers
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.


The documentation for this class was generated from the following file: