VR-Engage  2.2
Loading...
Searching...
No Matches
DtIfRwrData Class Reference

Detailed Description

Interface message for RWR data

This class encapsulates the current internal state of a single radar warning receiver (RWR). It contains information about the entity that owns the RWR, the RWR's name, and a list of currently detected radar emitter contacts.

#include <ifRwrData.h>

Inheritance diagram for DtIfRwrData:
[legend]

Public Member Functions

 DtIfRwrData ()
 
 DtIfRwrData (const DtIfRwrData &orig)
 
const DtIfRwrDataoperator= (const DtIfRwrData &orig)
 
virtual ~DtIfRwrData () override
 
virtual int type () const override
 
virtual DtSimInterfaceContent * clone () const override
 
virtual DtString rwrName () const
 
virtual void setRwrName (const DtString &name)
 
virtual void setSourceEntity (const DtUUID &entity)
 
virtual const DtUUID & sourceEntity () const
 
virtual const DtRwRwrContactInfoListrwrContactList () const
 
virtual DtRwRwrContactInfoListrwrContactList ()
 
virtual int netRepSize () const override
 
virtual bool setFromNet (const char *contentBuffer, unsigned contentSize) override
 
virtual bool setToNet () override
 
virtual void printDataToString (DtString &str) override
 

Static Public Member Functions

static DtSimInterfaceContent * creator ()
 

Protected Attributes

DtUUID mySourceEntity
 
DtString myRwrName
 
DtRwRwrContactInfoList myRwrContactInfoList
 

Constructor & Destructor Documentation

◆ DtIfRwrData() [1/2]

DtIfRwrData::DtIfRwrData ( )

Default constructor.

Initializes an empty RWR data message.

Referenced by DtIfRwrData(), and operator=().

◆ DtIfRwrData() [2/2]

DtIfRwrData::DtIfRwrData ( const DtIfRwrData & orig)

Copy constructor.

Parameters
origThe RWR data to copy from

Creates a new RWR data object by copying an existing one.

References DtIfRwrData().

◆ ~DtIfRwrData()

virtual DtIfRwrData::~DtIfRwrData ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ operator=()

const DtIfRwrData & DtIfRwrData::operator= ( const DtIfRwrData & orig)

Assignment operator.

Parameters
origThe RWR data to copy from
Returns
Reference to this object after assignment

Copies the contents of another RWR data object into this one.

References DtIfRwrData().

◆ type()

virtual int DtIfRwrData::type ( ) const
overridevirtual

Gets the interface message type.

Returns
The message type identifier

Returns DtRwrDataMessageType as defined in vreVrfMessageTypes.h.

◆ clone()

virtual DtSimInterfaceContent * DtIfRwrData::clone ( ) const
overridevirtual

Creates a copy of this message.

Returns
Pointer to the new copy

Creates a dynamically allocated copy of this message.

◆ rwrName()

virtual DtString DtIfRwrData::rwrName ( ) const
virtual

Gets the name of the RWR.

Returns
The RWR name

◆ setRwrName()

virtual void DtIfRwrData::setRwrName ( const DtString & name)
virtual

Sets the name of the RWR.

Parameters
nameThe RWR name to set

◆ setSourceEntity()

virtual void DtIfRwrData::setSourceEntity ( const DtUUID & entity)
virtual

Sets the source entity UUID.

Parameters
entityThe UUID of the source entity

Sets the UUID of the entity that owns the RWR system.

◆ sourceEntity()

virtual const DtUUID & DtIfRwrData::sourceEntity ( ) const
virtual

Gets the source entity UUID.

Returns
The UUID of the source entity

Returns the UUID of the entity that owns the RWR system.

◆ rwrContactList() [1/2]

virtual const DtRwRwrContactInfoList & DtIfRwrData::rwrContactList ( ) const
virtual

Gets the list of RWR contacts (const version)

Returns
Const reference to the list of RWR contacts

Returns a constant reference to the list of radar contacts detected by the RWR.

◆ rwrContactList() [2/2]

virtual DtRwRwrContactInfoList & DtIfRwrData::rwrContactList ( )
virtual

Gets the list of RWR contacts (non-const version)

Returns
Reference to the list of RWR contacts

Returns a modifiable reference to the list of radar contacts detected by the RWR.

◆ netRepSize()

virtual int DtIfRwrData::netRepSize ( ) const
overridevirtual

Gets the network representation size.

Returns
Size in bytes of the network representation

Returns the size of the network buffer needed to store this message.

◆ setFromNet()

virtual bool DtIfRwrData::setFromNet ( const char * contentBuffer,
unsigned contentSize )
overridevirtual

Deserializes the message from a network buffer.

Parameters
contentBufferPointer to the network buffer
contentSizeSize of the buffer in bytes
Returns
True if deserialization was successful

Fills the message from the provided network buffer.

◆ setToNet()

virtual bool DtIfRwrData::setToNet ( )
overridevirtual

Serializes the message for network transmission.

Returns
True if serialization was successful

Prepares the message for network transmission.

◆ printDataToString()

virtual void DtIfRwrData::printDataToString ( DtString & str)
overridevirtual

Formats the message data as a string.

Parameters
strString to store the formatted message data

Appends a human-readable representation of the message to the provided string.

◆ creator()

static DtSimInterfaceContent * DtIfRwrData::creator ( )
static

Static creator function for factory registration.

Returns
Pointer to a new instance of DtIfRwrData

This static function is used for registration with DtInterfaceContentFactory.

Member Data Documentation

◆ mySourceEntity

DtUUID DtIfRwrData::mySourceEntity
protected

UUID of the entity that owns the RWR.

◆ myRwrName

DtString DtIfRwrData::myRwrName
protected

Name of the RWR system.

◆ myRwrContactInfoList

DtRwRwrContactInfoList DtIfRwrData::myRwrContactInfoList
protected

List of radar contacts detected by the RWR.


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