VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Public Attributes

Represents Events in DIS. More...

+ Collaboration diagram for DtEventId:

Public Member Functions

 DtEventId (const char *str)
 Constructs a DtEventId instance from a string in the form: "2:4:5" (Site/Host/EventNum) More...
 
 DtEventId (int site, int host, int eventNum)
 Constructor. More...
 
 DtEventId (DtNetEventId netId)
 Constructs an EventId from a DIS network structure. More...
 
 DtEventId ()
 Constructs a default EventId. More...
 
 ~DtEventId ()
 Destructor. More...
 
void init (int site, int host, int eventNum)
 Provided for backwards compatibility. More...
 
void setFromNet (DtNetEventId netId)
 same as DtEventId(DtNetEventId) More...
 
 operator DtNetEventId () const
 
int site () const
 Gets the SiteID. More...
 
void setSite (int site)
 Sets the SiteID. More...
 
int host () const
 Gets the HostID, also know as the application ID. More...
 
void setHost (int host)
 Sets the HostID, also know as the application ID. More...
 
int eventNum () const
 Gets the Event Number. More...
 
void setEventNum (int eventNum)
 Sets the Event Number. More...
 
void setEventId (int site, int host, int eventNum)
 Sets the Event ID. More...
 
const char * string () const
 returns a string representation of this class More...
 
int operator== (const DtEventId &otherGuy) const
 
int operator!= (const DtEventId &otherGuy) const
 

Static Public Member Functions

static const DtEventIdnullId ()
 returns an empty string More...
 

Public Attributes

DtSimulationAddress DtSimulator
 Public for backwards compatibility, will be removed in the future. More...
 
DtU16 DtEvent
 Public for backwards compatibility, will be removed in the future. More...
 
DtString myStringRep
 Public for backwards compatibility, will be removed in the future. More...
 

Detailed Description

Represents Events in DIS.

Events take the form of DtSimulationAddress:eventNum. EventIDs are used to match WeaponFire and Detonation Events as well as changes in EmitterSystems. Please consult the DIS standard for more details.

Constructor & Destructor Documentation

DtEventId::DtEventId ( const char *  str)

Constructs a DtEventId instance from a string in the form: "2:4:5" (Site/Host/EventNum)

DtEventId::DtEventId ( int  site,
int  host,
int  eventNum 
)

Constructor.

DtEventId::DtEventId ( DtNetEventId  netId)

Constructs an EventId from a DIS network structure.

DtEventId::DtEventId ( )

Constructs a default EventId.

DtEventId::~DtEventId ( )

Destructor.

Member Function Documentation

int DtEventId::eventNum ( ) const

Gets the Event Number.

int DtEventId::host ( ) const

Gets the HostID, also know as the application ID.

void DtEventId::init ( int  site,
int  host,
int  eventNum 
)

Provided for backwards compatibility.

static const DtEventId& DtEventId::nullId ( )
static

returns an empty string

DtEventId::operator DtNetEventId ( ) const
int DtEventId::operator!= ( const DtEventId otherGuy) const
int DtEventId::operator== ( const DtEventId otherGuy) const
void DtEventId::setEventId ( int  site,
int  host,
int  eventNum 
)

Sets the Event ID.

void DtEventId::setEventNum ( int  eventNum)

Sets the Event Number.

void DtEventId::setFromNet ( DtNetEventId  netId)
void DtEventId::setHost ( int  host)

Sets the HostID, also know as the application ID.

void DtEventId::setSite ( int  site)

Sets the SiteID.

int DtEventId::site ( ) const

Gets the SiteID.

const char* DtEventId::string ( ) const

returns a string representation of this class

Member Data Documentation

DtU16 DtEventId::DtEvent

Public for backwards compatibility, will be removed in the future.

DtSimulationAddress DtEventId::DtSimulator

Public for backwards compatibility, will be removed in the future.

DtString DtEventId::myStringRep

Public for backwards compatibility, will be removed in the future.


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

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)