3 #include <dis6/EntityID.h> 4 #include <dis6/EntityID.h> 5 #include <dis6/EntityType.h> 6 #include <dis6/TwoByteChunk.h> 7 #include <dis6/Vector3Float.h> 9 #include <dis6/MinefieldFamilyPdu.h> 10 #include <dis6/utils/DataStream.h> 11 #include <dis6/opendis6_export.h> 72 virtual void marshal(
DataStream& dataStream)
const;
73 virtual void unmarshal(
DataStream& dataStream);
76 const EntityID& getMinefieldID()
const;
77 void setMinefieldID(
const EntityID &pX);
80 const EntityID& getRequestingEntityID()
const;
81 void setRequestingEntityID(
const EntityID &pX);
83 unsigned short getMinefieldSequenceNumbeer()
const;
84 void setMinefieldSequenceNumbeer(
unsigned short pX);
86 unsigned char getRequestID()
const;
87 void setRequestID(
unsigned char pX);
89 unsigned char getPduSequenceNumber()
const;
90 void setPduSequenceNumber(
unsigned char pX);
92 unsigned char getNumberOfPdus()
const;
93 void setNumberOfPdus(
unsigned char pX);
95 unsigned char getNumberOfMinesInThisPdu()
const;
97 unsigned char getNumberOfSensorTypes()
const;
99 unsigned char getPad2()
const;
100 void setPad2(
unsigned char pX);
102 unsigned int getDataFilter()
const;
103 void setDataFilter(
unsigned int pX);
109 std::vector<TwoByteChunk>& getSensorTypes();
110 const std::vector<TwoByteChunk>& getSensorTypes()
const;
111 void setSensorTypes(
const std::vector<TwoByteChunk>& pX);
113 unsigned char getPad3()
const;
114 void setPad3(
unsigned char pX);
116 std::vector<Vector3Float>& getMineLocation();
117 const std::vector<Vector3Float>& getMineLocation()
const;
118 void setMineLocation(
const std::vector<Vector3Float>& pX);
121 virtual int getMarshalledSize()
const;
unsigned char _numberOfMinesInThisPdu
how many mines are in this PDU
Definition: MinefieldDataPdu.h:44
std::vector< Vector3Float > _mineLocation
Mine locations.
Definition: MinefieldDataPdu.h:65
Symbolic names as defined in 5.1.4.
Definition: AcknowledgePdu.h:8
EntityID _requestingEntityID
ID of entity making request.
Definition: MinefieldDataPdu.h:29
unsigned char _pduSequenceNumber
pdu sequence number
Definition: MinefieldDataPdu.h:38
EntityType _mineType
Mine type.
Definition: MinefieldDataPdu.h:56
unsigned char _pad2
padding
Definition: MinefieldDataPdu.h:50
a class to support managing a network buffer.
Definition: DataStream.h:28
unsigned char _pad3
Padding to get things 32-bit aligned.
Definition: MinefieldDataPdu.h:62
Definition: MinefieldDataPdu.h:22
std::vector< TwoByteChunk > _sensorTypes
Sensor types, each 16 bits long.
Definition: MinefieldDataPdu.h:59
unsigned char _requestID
request ID
Definition: MinefieldDataPdu.h:35
unsigned int _dataFilter
32 boolean fields
Definition: MinefieldDataPdu.h:53
Definition: EntityID.h:15
unsigned char _numberOfPdus
number of pdus in response
Definition: MinefieldDataPdu.h:41
Definition: EntityType.h:15
Definition: MinefieldFamilyPdu.h:16
unsigned char _numberOfSensorTypes
how many sensor type are in this PDU
Definition: MinefieldDataPdu.h:47
EntityID _minefieldID
Minefield ID.
Definition: MinefieldDataPdu.h:26
unsigned short _minefieldSequenceNumbeer
Minefield sequence number.
Definition: MinefieldDataPdu.h:32