ElectromagneticEmissionPDU Class Reference

Electromagnetic Emission PDU. More...

Collaboration diagram for ElectromagneticEmissionPDU:

Collaboration graph
[legend]
List of all members.

Public Types

enum  { STATE_UPDATE = 0, CHANGED_DATA_UPDATE = 1 }

Public Member Functions

EmissionSystemgetEmissionSystem (const int idx)
const EmissionSystemgetEmissionSystem (const int idx) const
void swapBytes ()
void dumpData ()

Public Attributes

PDUHeader header
entityIdentifierDIS emittingEntityID
EventIdentifier eventID
unsigned char stateUpdateIndicator
unsigned char numberOfSystems
unsigned short padding

Detailed Description

Electromagnetic Emission PDU.


Member Enumeration Documentation

anonymous enum

(IST-CF-03-01, May 5, 2003)

Enumerator:
STATE_UPDATE 
CHANGED_DATA_UPDATE 


Member Function Documentation

EmissionSystem* ElectromagneticEmissionPDU::getEmissionSystem ( const int  idx  )  [inline]

Returns a pointer to the idx'th EmissionSystem structure; Note: This ONLY works after the PDU and emissions systems have been created and initialized! (The systemDataLength's in the EmissionSystem structures, as well as our 'numberOfSystems' member variable, need to be correct for this to work) Note: 'idx' is zero based, so a idx == 1 will return the second EmissionSystem structure

First Emission system data is just after this structure

step down to the correct emission system data using 'systemDataLength'

const EmissionSystem* ElectromagneticEmissionPDU::getEmissionSystem ( const int  idx  )  const [inline]

void ElectromagneticEmissionPDU::swapBytes (  )  [inline]

Swap bytes 'to' or 'from' the network.

Swap our stuff first

then swap emission data

void ElectromagneticEmissionPDU::dumpData (  )  [inline]

Dump the PDU's data to the standard output device, std::cout.


Member Data Documentation

PDUHeader ElectromagneticEmissionPDU::header

PDU Header.

entityIdentifierDIS ElectromagneticEmissionPDU::emittingEntityID

Entity that owns these systems.

EventIdentifier ElectromagneticEmissionPDU::eventID

Event ID.

unsigned char ElectromagneticEmissionPDU::stateUpdateIndicator

State.

unsigned char ElectromagneticEmissionPDU::numberOfSystems

Number of systems (EmissionSystem) that follow.

unsigned short ElectromagneticEmissionPDU::padding


Generated on Tue Dec 19 16:25:39 2006 for Eaagles by  doxygen 1.5.0