VR-Engage  2.2
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
 

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(), makVre::DtExtendedStateConnector::logMissingStateProperty(), makVre::DtExtendedStateConnector::sendExtendedDataMessage(), and makVre::DtExtendedStateConnector::sendStatePropertyMessage().

◆ name()

◆ 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().


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