open-dis-cpp
Public Member Functions | Protected Attributes | List of all members
DIS::MinefieldDataPdu Class Reference
Inheritance diagram for DIS::MinefieldDataPdu:
Inheritance graph
[legend]
Collaboration diagram for DIS::MinefieldDataPdu:
Collaboration graph
[legend]

Public Member Functions

virtual void marshal (DataStream &dataStream) const
 
virtual void unmarshal (DataStream &dataStream)
 
EntityIDgetMinefieldID ()
 
const EntityIDgetMinefieldID () const
 
void setMinefieldID (const EntityID &pX)
 
EntityIDgetRequestingEntityID ()
 
const EntityIDgetRequestingEntityID () const
 
void setRequestingEntityID (const EntityID &pX)
 
unsigned short getMinefieldSequenceNumbeer () const
 
void setMinefieldSequenceNumbeer (unsigned short pX)
 
unsigned char getRequestID () const
 
void setRequestID (unsigned char pX)
 
unsigned char getPduSequenceNumber () const
 
void setPduSequenceNumber (unsigned char pX)
 
unsigned char getNumberOfPdus () const
 
void setNumberOfPdus (unsigned char pX)
 
unsigned char getNumberOfMinesInThisPdu () const
 
unsigned char getNumberOfSensorTypes () const
 
unsigned char getPad2 () const
 
void setPad2 (unsigned char pX)
 
unsigned int getDataFilter () const
 
void setDataFilter (unsigned int pX)
 
EntityTypegetMineType ()
 
const EntityTypegetMineType () const
 
void setMineType (const EntityType &pX)
 
std::vector< TwoByteChunk > & getSensorTypes ()
 
const std::vector< TwoByteChunk > & getSensorTypes () const
 
void setSensorTypes (const std::vector< TwoByteChunk > &pX)
 
unsigned char getPad3 () const
 
void setPad3 (unsigned char pX)
 
std::vector< Vector3Float > & getMineLocation ()
 
const std::vector< Vector3Float > & getMineLocation () const
 
void setMineLocation (const std::vector< Vector3Float > &pX)
 
virtual int getMarshalledSize () const
 
bool operator== (const MinefieldDataPdu &rhs) const
 
- Public Member Functions inherited from DIS::MinefieldFamilyPdu
bool operator== (const MinefieldFamilyPdu &rhs) const
 
bool operator== (const MinefieldFamilyPdu &rhs) const
 
- Public Member Functions inherited from DIS::Pdu
unsigned char getProtocolVersion () const
 
void setProtocolVersion (unsigned char pX)
 
unsigned char getExerciseID () const
 
void setExerciseID (unsigned char pX)
 
unsigned char getPduType () const
 
void setPduType (unsigned char pX)
 
unsigned char getProtocolFamily () const
 
void setProtocolFamily (unsigned char pX)
 
unsigned int getTimestamp () const
 
void setTimestamp (unsigned int pX)
 
unsigned short getLength () const
 
void setLength (unsigned short pX)
 
short getPadding () const
 
void setPadding (short pX)
 
bool operator== (const Pdu &rhs) const
 
unsigned char getPduStatus () const
 
void setPduStatus (unsigned char pX)
 
unsigned char getPadding () const
 
void setPadding (unsigned char pX)
 
bool operator== (const Pdu &rhs) const
 
- Public Member Functions inherited from DIS::PduSuperclass
unsigned char getProtocolVersion () const
 
void setProtocolVersion (unsigned char pX)
 
unsigned char getExerciseID () const
 
void setExerciseID (unsigned char pX)
 
unsigned char getPduType () const
 
void setPduType (unsigned char pX)
 
unsigned char getProtocolFamily () const
 
void setProtocolFamily (unsigned char pX)
 
unsigned int getTimestamp () const
 
void setTimestamp (unsigned int pX)
 
unsigned short getLength () const
 
void setLength (unsigned short pX)
 
bool operator== (const PduSuperclass &rhs) const
 

Protected Attributes

EntityID _minefieldID
 Minefield ID.
 
EntityID _requestingEntityID
 ID of entity making request.
 
unsigned short _minefieldSequenceNumbeer
 Minefield sequence number.
 
unsigned char _requestID
 request ID
 
unsigned char _pduSequenceNumber
 pdu sequence number
 
unsigned char _numberOfPdus
 number of pdus in response
 
unsigned char _numberOfMinesInThisPdu
 how many mines are in this PDU
 
unsigned char _numberOfSensorTypes
 how many sensor type are in this PDU
 
unsigned char _pad2
 padding
 
unsigned int _dataFilter
 32 boolean fields
 
EntityType _mineType
 Mine type.
 
std::vector< TwoByteChunk_sensorTypes
 Sensor types, each 16 bits long.
 
unsigned char _pad3
 Padding to get things 32-bit aligned. More...
 
std::vector< Vector3Float_mineLocation
 Mine locations.
 
- Protected Attributes inherited from DIS::Pdu
unsigned char _protocolVersion
 The version of the protocol. More...
 
unsigned char _exerciseID
 Exercise ID.
 
unsigned char _pduType
 Type of pdu, unique for each PDU class.
 
unsigned char _protocolFamily
 value that refers to the protocol family, eg SimulationManagement, et
 
unsigned int _timestamp
 Timestamp value.
 
unsigned short _length
 Length, in bytes, of the PDU.
 
short _padding
 zero-filled array of padding
 
unsigned char _pduStatus
 PDU Status Record. More...
 
unsigned char _padding
 zero-filled array of padding
 
- Protected Attributes inherited from DIS::PduSuperclass
unsigned char _protocolVersion
 The version of the protocol. More...
 
unsigned char _exerciseID
 Exercise ID.
 
unsigned char _pduType
 Type of pdu, unique for each PDU class.
 
unsigned char _protocolFamily
 value that refers to the protocol family, eg SimulationManagement, et
 
unsigned int _timestamp
 Timestamp value.
 
unsigned short _length
 Length, in bytes, of the PDU.
 

Member Data Documentation

◆ _pad3

unsigned char DIS::MinefieldDataPdu::_pad3
protected

Padding to get things 32-bit aligned.

^^^this is wrong–dyanmically sized padding needed


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