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

Represents Events in the RPR FOM. More...

+ Collaboration diagram for DtEventId:

Public Member Functions

 DtEventId (const char *str)
 Construct a DtEventId from a character string consisting of the event number followed by a colon, and then an object name. More...
 
 DtEventId (const DtGlobalObjectDesignator &des, int eventNum)
 Construct a DtEventId from a name and an event number. More...
 
 DtEventId (const DtNetEventId &netId)
 Construct a DtEventId from network representation. More...
 
 DtEventId (const DtEventId &netId)
 Copy constructor. More...
 
DtEventIdoperator= (const DtEventId &orig)
 Assignment operator. More...
 
 DtEventId ()
 Same as DtEventId("", 0);. More...
 
 ~DtEventId ()
 Destructor. More...
 
void setFromNet (const DtNetEventId &netId)
 Set from network representation. More...
 
DtNetEventIdnetRep () const
 Convert to network representation. Returns ptr to internal memory. More...
 
int netSize () const
 Return the size of the network implementation. More...
 
int operator== (const DtEventId &otherGuy) const
 Equivalence operators. More...
 
int operator!= (const DtEventId &otherGuy) const
 
void setEventNum (int eventNum)
 Set event number component. More...
 
int eventNum () const
 Get event number component. More...
 
const DtGlobalObjectDesignatorobjectId () const
 Get object designator component. More...
 
void setObjectId (const DtGlobalObjectDesignator &name)
 Set object designator component. More...
 
const DtGlobalObjectDesignatorglobalId () const
 Get object designator component. More...
 
void setGlobalId (const DtGlobalObjectDesignator &name)
 Set object designator component. More...
 
const char * string () const
 Convert to string. More...
 

Static Public Member Functions

static const DtEventIdnullId ()
 Return a null DtEventId. More...
 

Protected Member Functions

void init (const DtGlobalObjectDesignator &des, int eventNum)
 initialize More...
 

Protected Attributes

DtString myObjName
 
int myEventNum
 
DtNetEventIdmyNetRep
 
DtString myStringRep
 

Detailed Description

Represents Events in the RPR FOM.

Events are represented in the form num:string, where num is the eventId and string an DtGlobalObjectIdentifier

Constructor & Destructor Documentation

DtEventId::DtEventId ( const char *  str)

Construct a DtEventId from a character string consisting of the event number followed by a colon, and then an object name.

For example: DtEventId event("36:Object1");

DtEventId::DtEventId ( const DtGlobalObjectDesignator des,
int  eventNum 
)

Construct a DtEventId from a name and an event number.

DtEventId::DtEventId ( const DtNetEventId netId)

Construct a DtEventId from network representation.

DtEventId::DtEventId ( const DtEventId netId)

Copy constructor.

DtEventId::DtEventId ( )

Same as DtEventId("", 0);.

DtEventId::~DtEventId ( )

Destructor.

Member Function Documentation

int DtEventId::eventNum ( ) const

Get event number component.

const DtGlobalObjectDesignator& DtEventId::globalId ( ) const

Get object designator component.

void DtEventId::init ( const DtGlobalObjectDesignator des,
int  eventNum 
)
protected

initialize

DtNetEventId* DtEventId::netRep ( ) const

Convert to network representation. Returns ptr to internal memory.

int DtEventId::netSize ( ) const

Return the size of the network implementation.

static const DtEventId& DtEventId::nullId ( )
static

Return a null DtEventId.

const DtGlobalObjectDesignator& DtEventId::objectId ( ) const

Get object designator component.

int DtEventId::operator!= ( const DtEventId otherGuy) const
DtEventId& DtEventId::operator= ( const DtEventId orig)

Assignment operator.

int DtEventId::operator== ( const DtEventId otherGuy) const

Equivalence operators.

void DtEventId::setEventNum ( int  eventNum)

Set event number component.

void DtEventId::setFromNet ( const DtNetEventId netId)

Set from network representation.

void DtEventId::setGlobalId ( const DtGlobalObjectDesignator name)

Set object designator component.

void DtEventId::setObjectId ( const DtGlobalObjectDesignator name)

Set object designator component.

const char* DtEventId::string ( ) const

Convert to string.

Member Data Documentation

int DtEventId::myEventNum
protected
DtNetEventId* DtEventId::myNetRep
protected
DtString DtEventId::myObjName
protected
DtString DtEventId::myStringRep
protected

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

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)