EmissionSystem Struct Reference

Emission System Data. More...

Collaboration diagram for EmissionSystem:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 EmissionSystem ()
void operator= (const EmissionSystem &_v)
bool operator== (const EmissionSystem &s2) const
bool operator!= (const EmissionSystem &a) const
void swapBytes ()
EmitterBeamDatagetEmitterBeamData (const int idx)
const EmitterBeamDatagetEmitterBeamData (const int idx) const

Public Attributes

unsigned char systemDataLength
unsigned char numberOfBeams
unsigned short padding1
EmitterSystem emitterSystem
vectorDIS location

Friends

std::ostream & operator<< (std::ostream &s, const EmissionSystem &v)
std::ostream & operator<< (std::ostream &s, const EmissionSystem *const v)

Detailed Description

Emission System Data.


Constructor & Destructor Documentation

EmissionSystem::EmissionSystem (  )  [inline]

Constructor(s).


Member Function Documentation

void EmissionSystem::operator= ( const EmissionSystem _v  )  [inline]

Assignment operator (does NOT copy the beams which follow the EmissionSystem structure).

bool EmissionSystem::operator== ( const EmissionSystem s2  )  const [inline]

Compare to another EmissionSystem structure.

systemDataLength == s2.systemDataLength Don't compare the total length

bool EmissionSystem::operator!= ( const EmissionSystem a  )  const [inline]

void EmissionSystem::swapBytes (  )  [inline]

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

Swap our stuff first

Then swap emission data

EmitterBeamData* EmissionSystem::getEmitterBeamData ( const int  idx  )  [inline]

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

First Emitter beam data is just after this structure

step down to the correct beam data using 'beamDataLength'

const EmitterBeamData* EmissionSystem::getEmitterBeamData ( const int  idx  )  const [inline]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const EmissionSystem v 
) [friend]

Friendly print function.

std::ostream& operator<< ( std::ostream &  s,
const EmissionSystem *const  v 
) [friend]

Another friendly print functions.


Member Data Documentation

unsigned char EmissionSystem::systemDataLength

Length of this system data, in 32bit words, including the Emitter Beam Data.

unsigned char EmissionSystem::numberOfBeams

Number of beams (EmitterBeamData's that follow).

unsigned short EmissionSystem::padding1

EmitterSystem EmissionSystem::emitterSystem

Descrption of the Emitter System.

vectorDIS EmissionSystem::location

Location of emitter system; entities ref system (meters).


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