VR-Link API Documentation for DIS
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
DtReceiverPdu Class Reference

This class provides a wrapper around the DIS Receiver PDU network structure. More...

+ Inheritance diagram for DtReceiverPdu:
+ Collaboration diagram for DtReceiverPdu:

List of all members.

Public Types

enum  { PduStaticSize = 36 }
 The static size of a Receiver PDU. More...

Public Member Functions

 DtReceiverPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Default constructor.
 DtReceiverPdu (const DtNetReceiverPdu *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor that takes a Receiver PDU network structure.
 ~DtReceiverPdu ()
 Destructor.
virtual void printData () const
 Print the PDU's data to DtInfo.
virtual void printDataToStream (std::ostream &stream) const
 Print the PDU's data to the specified stream.
const DtEntityIdentifierentityId () const
 Set/Get the Entity ID of the entity that the receiver is attached to.
void setEntityId (const DtEntityIdentifier &id)
 Set/Get the Entity ID of the entity that the receiver is attached to.
unsigned int radioId () const
 Set/Get the radio ID.
void setRadioId (unsigned int id)
 Set/Get the radio ID.
DtRadioReceiverState receiverState () const
 Set/Get the receiver state.
void setReceiverState (DtRadioReceiverState state)
 Set/Get the receiver state.
float receivedPower () const
 Set/Get the received power.
void setReceivedPower (float power)
 Set/Get the received power.
const DtEntityIdentifiertransmitEntityId () const
 Set/Get the transmitter's entity ID.
void setTransmitEntityId (const DtEntityIdentifier &id)
 Set/Get the transmitter's entity ID.
unsigned int transmitRadioId () const
 Set/Get the transmitter's radio ID.
void setTransmitRadioId (unsigned int id)
 Set/Get the transmitter's radio ID.

Static Public Member Functions

static DtPducreate (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Static creator function that creates a Receiver PDU from a packet received on the network.
static void addCallback (DtExerciseConn *conn, DtReceiverPduCb cb, void *usr)
 Add a callback to be called on Receiver PDU receipt.
static void removeCallback (DtExerciseConn *conn, DtReceiverPduCb cb, void *usr)
 Remove the callback that's called on Receiver PDU receipt.

Protected Member Functions

DtPduKind internalGetPduKind () const
 Returns the PDU kind.

Protected Attributes

DtEntityIdentifier theId
DtEntityIdentifier transId

Detailed Description

This class provides a wrapper around the DIS Receiver PDU network structure.


Member Enumeration Documentation

anonymous enum

The static size of a Receiver PDU.

Enumerator:
PduStaticSize 

Constructor & Destructor Documentation

Default constructor.

Constructor that takes a Receiver PDU network structure.

Destructor.


Member Function Documentation

static void DtReceiverPdu::addCallback ( DtExerciseConn conn,
DtReceiverPduCb  cb,
void *  usr 
) [static]

Add a callback to be called on Receiver PDU receipt.

static DtPdu* DtReceiverPdu::create ( const DtNetPacket initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Static creator function that creates a Receiver PDU from a packet received on the network.

Set/Get the Entity ID of the entity that the receiver is attached to.

DtPduKind DtReceiverPdu::internalGetPduKind ( ) const [inline, protected, virtual]

Returns the PDU kind.

Implements DtPdu.

References DtReceiverPduKind.

virtual void DtReceiverPdu::printData ( ) const [virtual]

Print the PDU's data to DtInfo.

Reimplemented from DtPdu.

virtual void DtReceiverPdu::printDataToStream ( std::ostream &  stream) const [virtual]

Print the PDU's data to the specified stream.

Reimplemented from DtPdu.

unsigned int DtReceiverPdu::radioId ( ) const

Set/Get the radio ID.

Set/Get the received power.

Set/Get the receiver state.

static void DtReceiverPdu::removeCallback ( DtExerciseConn conn,
DtReceiverPduCb  cb,
void *  usr 
) [static]

Remove the callback that's called on Receiver PDU receipt.

Set/Get the Entity ID of the entity that the receiver is attached to.

void DtReceiverPdu::setRadioId ( unsigned int  id)

Set/Get the radio ID.

void DtReceiverPdu::setReceivedPower ( float  power)

Set/Get the received power.

Set/Get the receiver state.

Set/Get the transmitter's entity ID.

void DtReceiverPdu::setTransmitRadioId ( unsigned int  id)

Set/Get the transmitter's radio ID.

Set/Get the transmitter's entity ID.

unsigned int DtReceiverPdu::transmitRadioId ( ) const

Set/Get the transmitter's radio ID.


Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)