-
Notifications
You must be signed in to change notification settings - Fork 20
PDU
Struct container for all information that is contained inside of all DIS PDUs. The base form of a PDU within the plugin.
struct FPDU- CoreMinimal
- UObject/NoExportTypes.h
- <dis6/Pdu.h>
- DISEnumsAndStructs.h
| Type | Name | Description |
|---|---|---|
| uint8 | ExerciseID | The DIS Exercise ID that this PDU is associated with |
| int32 | Length | Length, in bytes, of the PDU |
| uint8 | Padding | Zero-filled array of padding |
| EPDUType | PduType | Type of pdu, unique for each PDU struct |
| EProtocolFamily | ProtocolFamily | Value that refers to the protocol family, e.g. SimulationManagement, etc. |
| EProtocolVersion | ProtocolVersion | The version of the protocol. 5=DIS-1995, 6=DIS-1998. |
| FTimestamp | Timestamp | Timestamp, either relative or UTC. This field shall specify the time which the data in the PDU is valid. |
| Name | Description |
|---|---|
| FPDU() | Default constructor |
| Name | Description |
|---|---|
| ~FPDU() | Default destructor |
| Return | Name | Description |
|---|---|---|
| TArray<uint8> | DISDataStreamToBytes(DIS::DataStream DataStream) | Converts a DIS DataStream to an array of bytes. |
| SetupFromOpenDIS(const DIS::Pdu& PDUIn) | Converts an OpenDIS Pdu struct to an FPDU struct. | |
| TArray<uint8> | ToBytes() | Conversion to an array of bytes. Allows for an FPDU struct to be sent out with a UDP send socket. |
| ToOpenDIS(DIS::Pdu& PDUOut) | Conversion to OpenDIS Pdu struct |
uint8 ExerciseIDThe DIS Exercise ID that this PDU is associated with.
Category: GRILL DIS|Structs|PDUs
int32 LengthLength, in bytes, of the PDU.
Range: [0, 65535]
EPDUType PduTypeType of pdu, unique for each PDU struct
uint8 PaddingZero-filled array of padding.
EProtocolFamily ProtocolFamilyValue that refers to the protocol family, e.g. SimulationManagement, etc.
Category: GRILL DIS|Structs|PDUs
EProtocolVersion ProtocolVersionThe version of the protocol. 5=DIS-1995, 6=DIS-1998.
Category: GRILL DIS|Structs|PDUs
FTimestamp TimestampTimestamp, either relative or UTC. This field shall specify the time which the data in the PDU is valid.
Category: GRILL DIS|Structs|PDUs
FPDU()Default constructor.
virtual ~FPDU()Default destructor.
TArray<uint8> DISDataStreamToBytes
(
DIS::DataStream DataStream
)Converts a DIS DataStream to an array of bytes.
| Parameter | Description |
|---|---|
| DataStream | The DIS DataStream to convert to an array of bytes. |
| Returns |
|---|
| An array of bytes containing the information from the given DIS DataStream. |
void SetupFromOpenDIS
(
const DIS::Pdu& PDUIn
)Converts an OpenDIS Pdu struct to an FPDU struct.
| Parameter | Description |
|---|---|
| PDUIn | The OpenDIS Pdu struct to convert. |
virtual TArray<uint8> ToBytes() overrideConversion to OpenDIS Pdu struct
| Returns |
|---|
| An array of bytes containing the information from this FPDU. |
void ToOpenDIS
(
DIS::Pdu& PDUOut
)Conversion to an array of bytes. Allows for an FPDU struct to be sent out with a UDP send socket.
| Parameter | Description |
|---|---|
| PDUOut | The OpenDIS Pdu struct representation of this FPDU. |