KDIS  2-8-x
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Header7 Class Reference

#include <Header7.h>

Inheritance diagram for Header7:
Collaboration diagram for Header7:

Public Member Functions

virtual void Decode (KDataStream &stream, bool ignoreHeader=false) throw ( KException )
 Description: Convert From Network Data. More...
 
virtual KDataStream Encode () const
 Description: Convert To Network Data. More...
 
virtual void Encode (KDataStream &stream) const
 
virtual KString GetAsString () const
 Description: Returns a string representation of the PDU. More...
 
KUINT8 GetPDUStatus () const
 
KBOOL GetPDUStatusCEI () const
 
KDIS::DATA_TYPE::ENUMS::DetonationType GetPDUStatusDTI () const
 
KBOOL GetPDUStatusFTI () const
 
KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusIAI () const
 
KDIS::DATA_TYPE::ENUMS::LVCIndicator GetPDUStatusLVC () const
 
KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusRAI () const
 
KBOOL GetPDUStatusSM () const
 
KBOOL GetPDUStatusTEI () const
 
 Header7 ()
 
 Header7 (KDataStream &stream) throw ( KException )
 
 Header7 (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV, KUINT8 ExerciseID, KDIS::DATA_TYPE::ENUMS::PDUType PT, KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF, const KDIS::DATA_TYPE::TimeStamp &TS, KUINT16 PDULength)
 
KBOOL operator!= (const Header7 &Value) const
 
KBOOL operator== (const Header7 &Value) const
 
void SetPDUStatus (KUINT8 S)
 Description: The entire PDU status field. More...
 
void SetPDUStatusCEI (KBOOL CEI)
 
void SetPDUStatusDTI (KDIS::DATA_TYPE::ENUMS::DetonationType DTI)
 
void SetPDUStatusFTI (KBOOL FTI)
 
void SetPDUStatusIAI (KDIS::DATA_TYPE::ENUMS::AttachedIndicator RAI)
 
void SetPDUStatusLVC (KDIS::DATA_TYPE::ENUMS::LVCIndicator LVC)
 
void SetPDUStatusRAI (KDIS::DATA_TYPE::ENUMS::AttachedIndicator RAI)
 
void SetPDUStatusSM (KBOOL SM)
 
void SetPDUStatusTEI (KBOOL TEI)
 PDU: See Header7 description to see which PDU's use this field. More...
 
virtual ~Header7 ()
 
- Public Member Functions inherited from Header6
KUINT8 GetExerciseID () const
 
KUINT16 GetPDULength () const
 
KDIS::DATA_TYPE::ENUMS::PDUType GetPDUType () const
 
KDIS::DATA_TYPE::ENUMS::ProtocolFamily GetProtocolFamily () const
 
KDIS::DATA_TYPE::ENUMS::ProtocolVersion GetProtocolVersion () const
 
const KDIS::DATA_TYPE::TimeStampGetTimeStamp () const
 
KDIS::DATA_TYPE::TimeStampGetTimeStamp ()
 
 Header6 ()
 
 Header6 (KDataStream &stream) throw ( KException )
 
 Header6 (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV, KUINT8 ExerciseID, KDIS::DATA_TYPE::ENUMS::PDUType PT, KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF, const KDIS::DATA_TYPE::TimeStamp &TS, KUINT16 PDULength)
 
KBOOL operator!= (const Header6 &Value) const
 
KBOOL operator== (const Header6 &Value) const
 
void SetExerciseID (KUINT8 EID)
 
void SetPDULength (KUINT16 PDUL)
 
void SetPDUType (KDIS::DATA_TYPE::ENUMS::PDUType Type)
 
void SetProtocolFamily (KDIS::DATA_TYPE::ENUMS::ProtocolFamily PF)
 
void SetProtocolVersion (KDIS::DATA_TYPE::ENUMS::ProtocolVersion PV)
 to the mimimum version of DIS required to support the current PDU. More...
 
void SetTimeStamp (const KDIS::DATA_TYPE::TimeStamp &TS)
 
virtual ~Header6 ()
 

Protected Attributes

union {
   struct {
      union {
         struct {
            KUINT8   m_ui8PDUStatusBit5: 1
 
            KUINT8   m_ui8PDUStatusFTI: 1
 
         } 
 
         KUINT8   m_ui8PDUStatusDTI_RAI_IAI: 2
 
      } 
 
      KUINT8   m_ui8PDUStatusBit6: 1
 
      KUINT8   m_ui8PDUStatusCEI: 1
 
      KUINT8   m_ui8PDUStatusLVC: 2
 
      KUINT8   m_ui8PDUStatusSM: 1
 
      KUINT8   m_ui8PDUStatusTEI: 1
 
   } 
 
   KUINT8   m_ui8PDUStatus
 
m_PDUStatusUnion
 
- Protected Attributes inherited from Header6
KDIS::DATA_TYPE::TimeStamp m_TimeStamp
 
KUINT16 m_ui16PDULength
 
KUINT8 m_ui8ExerciseID
 
KUINT8 m_ui8Padding1
 
KUINT8 m_ui8Padding2
 
KUINT8 m_ui8PDUType
 
KUINT8 m_ui8ProtocolFamily
 
KUINT8 m_ui8ProtocolVersion
 

Additional Inherited Members

- Static Public Attributes inherited from Header6
static const KUINT16 HEADER6_PDU_SIZE = 12
 

Constructor & Destructor Documentation

Header7 ( )
Header7 ( KDataStream stream)
throw (KException
)
virtual ~Header7 ( )
virtual

Member Function Documentation

void SetPDUStatus ( KUINT8  S)

Description: The entire PDU status field.

KUINT8 GetPDUStatus ( ) const
void SetPDUStatusCEI ( KBOOL  CEI)

Description: Indicates whether the PDU is Coupled true(1) or Not Coupled false(0) with an Attribute PDU. PDU: Applies to all PDU's(1-71) except the Attribute PDU.

KBOOL GetPDUStatusCEI ( ) const
void SetPDUStatusTEI ( KBOOL  TEI)

PDU: See Header7 description to see which PDU's use this field.

Description: Identifies whether the Simulation Address of the Entity ID contained in this PDU is the owner of the entity. false(0) = no difference. The Simulation Address of the Entity ID is the owner of Indicator. true(1) = difference. The Simulation Address of the Entity ID is not the owner of this entity.

KBOOL GetPDUStatusTEI ( ) const
void SetPDUStatusLVC ( KDIS::DATA_TYPE::ENUMS::LVCIndicator  LVC)

Description: Indicates whether the data contained in this PDU is related to a live(1), virtual(2) or constructive(3) entity. If the LVC designation is not able to be determined, this field shall be set to No Statement(0). http://en.wikipedia.org/wiki/Live,_Virtual,_and_Constructive PDU: See Header7 description to see which PDU's use this field.

KDIS::DATA_TYPE::ENUMS::LVCIndicator GetPDUStatusLVC ( ) const
void SetPDUStatusFTI ( KBOOL  FTI)

Description: Indicates whether the type of object fired was a Munition false(0) or an Expendable true(1). PDU: Fire(2)

KBOOL GetPDUStatusFTI ( ) const
void SetPDUStatusDTI ( KDIS::DATA_TYPE::ENUMS::DetonationType  DTI)

Description: Indicates whether the type of object that detonated, exploded or burst was a Munition (0), Expendable (1), or Non-Munition Explosion (2). PDU: Detonation(3)

KDIS::DATA_TYPE::ENUMS::DetonationType GetPDUStatusDTI ( ) const
void SetPDUStatusRAI ( KDIS::DATA_TYPE::ENUMS::AttachedIndicator  RAI)

Description: Used to indicate whether the radio transmitter or receiver is attached to an entity or object as follows: No Statement(0), Unattached (1) and Attached (2). PDU: Transmitter(25), Signal(26), Receiver(27)

KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusRAI ( ) const
void SetPDUStatusIAI ( KDIS::DATA_TYPE::ENUMS::AttachedIndicator  RAI)

Description: Used to indicate whether the intercom is attached to an entity or object as follows: No Statement(0), Unattached (1) and Attached (2). PDU: IntercomSignal(31), IntercomControl(32)

KDIS::DATA_TYPE::ENUMS::AttachedIndicator GetPDUStatusIAI ( ) const
void SetPDUStatusSM ( KBOOL  SM)

Description: Indicates whether the Simulation Mode field of the Change/Options record for this IFF PDU is set to Regeneration false(0) or Interactive true(1). PDU: IFF ATC NAVAIDS(28)

KBOOL GetPDUStatusSM ( ) const
virtual KString GetAsString ( ) const
virtual

Description: Returns a string representation of the PDU.

Reimplemented from Header6.

Reimplemented in Aggregate_State_PDU, Entity_State_PDU, LE_Detonation_PDU, Directed_Energy_Fire_PDU, Appearance_PDU, Gridded_Data_PDU, TSPI_PDU, Transmitter_PDU, Environmental_Process_PDU, Minefield_Data_PDU, Intercom_Control_PDU, LE_Fire_PDU, Minefield_State_PDU, Collision_Elastic_PDU, IFF_PDU, IO_Action_PDU, Designator_PDU, Underwater_Acoustic_PDU, Minefield_Query_PDU, Point_Object_State_PDU, IsGroupOf_PDU, Detonation_PDU, Areal_Object_State_PDU, SEES_PDU, Collision_PDU, Entity_State_Update_PDU, Attribute_PDU, IO_Report_PDU, Fire_PDU, Transfer_Control_Request_PDU, Electromagnetic_Emission_PDU, Data_Query_PDU, Linear_Object_State_PDU, Signal_PDU, IsPartOf_PDU, Record_Query_R_PDU, Minefield_Response_NACK_PDU, Receiver_PDU, Stop_Freeze_PDU, Comment_PDU, Object_State_Header, Warfare_Header, Acknowledge_PDU, Entity_Damage_Status_PDU, Start_Resume_PDU, Set_Record_R_PDU, Radio_Communications_Header, Resupply_Received_PDU, Articulated_Parts_PDU, Simulation_Management_Header, Record_R_PDU, IO_Header, LE_Header, Logistics_Header, Action_Request_PDU, Repair_Response_PDU, Data_PDU, Event_Report_PDU, Minefield_Header, Action_Response_PDU, Create_Entity_PDU, Acknowledge_R_PDU, Repair_Complete_PDU, Service_Request_PDU, Create_Entity_R_PDU, Stop_Freeze_R_PDU, Start_Resume_R_PDU, Data_R_PDU, Action_Request_R_PDU, Remove_Entity_R_PDU, Intercom_Signal_PDU, Event_Report_R_PDU, Remove_Entity_PDU, Action_Response_R_PDU, Resupply_Offer_PDU, Set_Data_PDU, Comment_R_PDU, Set_Data_R_PDU, Resupply_Cancel_PDU, and Data_Query_R_PDU.

virtual void Decode ( KDataStream stream,
bool  ignoreHeader = false 
)
throw (KException
)
virtual
KBOOL operator== ( const Header7 Value) const
KBOOL operator!= ( const Header7 Value) const

Member Data Documentation

KUINT8 m_ui8PDUStatusTEI
KUINT8 m_ui8PDUStatusLVC
KUINT8 m_ui8PDUStatusCEI
KUINT8 m_ui8PDUStatusFTI
KUINT8 m_ui8PDUStatusBit5
KUINT8 m_ui8PDUStatusDTI_RAI_IAI
KUINT8 m_ui8PDUStatusBit6
KUINT8 m_ui8PDUStatusSM
KUINT8 m_ui8PDUStatus
union { ... } m_PDUStatusUnion

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