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

Detailed Description

Interface message for canceling RWR data subscriptions

This class is used to indicate that any previous RWR (Radar Warning Receiver) data subscription from the originating simulation address should be canceled, and RWR data messages should no longer be sent. This is the counterpart to a subscription request with the subscribe flag set to true.

#include <ifRwrDataUnsubscribe.h>

Inheritance diagram for DtIfRwrDataUnsubscribe:
[legend]

Public Member Functions

 DtIfRwrDataUnsubscribe ()
 
 DtIfRwrDataUnsubscribe (const DtIfRwrDataUnsubscribe &orig)
 
const DtIfRwrDataUnsubscribeoperator= (const DtIfRwrDataUnsubscribe &orig)
 
virtual ~DtIfRwrDataUnsubscribe () override
 
virtual int type () const override
 
virtual DtSimInterfaceContent * clone () const override
 
virtual void setUUID (const DtUUID &name)
 
virtual const DtUUID & uuid () const
 
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 myUUID
 

Constructor & Destructor Documentation

◆ DtIfRwrDataUnsubscribe() [1/2]

DtIfRwrDataUnsubscribe::DtIfRwrDataUnsubscribe ( )

Default constructor.

Initializes an empty RWR data unsubscribe message.

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

◆ DtIfRwrDataUnsubscribe() [2/2]

DtIfRwrDataUnsubscribe::DtIfRwrDataUnsubscribe ( const DtIfRwrDataUnsubscribe & orig)

Copy constructor.

Parameters
origThe RWR data unsubscribe message to copy from

Creates a new RWR data unsubscribe message by copying an existing one.

References DtIfRwrDataUnsubscribe().

◆ ~DtIfRwrDataUnsubscribe()

virtual DtIfRwrDataUnsubscribe::~DtIfRwrDataUnsubscribe ( )
overridevirtual

Virtual destructor.

Member Function Documentation

◆ operator=()

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

Assignment operator.

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

Copies the contents of another RWR data unsubscribe message into this one.

References DtIfRwrDataUnsubscribe().

◆ type()

virtual int DtIfRwrDataUnsubscribe::type ( ) const
overridevirtual

Gets the interface message type.

Returns
The message type identifier

Returns DtRwrDataUnsubscribeMessageType as defined in vreVrfMessageTypes.h.

◆ clone()

virtual DtSimInterfaceContent * DtIfRwrDataUnsubscribe::clone ( ) const
overridevirtual

Creates a copy of this message.

Returns
Pointer to the new copy

Creates a dynamically allocated copy of this message.

◆ setUUID()

virtual void DtIfRwrDataUnsubscribe::setUUID ( const DtUUID & name)
virtual

Sets the UUID of the entity to unsubscribe from.

Parameters
nameThe entity UUID to set

Sets the UUID of the entity whose RWR data updates should no longer be received. This identifies the specific radar warning receiver system subscription to cancel.

◆ uuid()

virtual const DtUUID & DtIfRwrDataUnsubscribe::uuid ( ) const
virtual

Gets the UUID of the entity being unsubscribed from.

Returns
The entity UUID

◆ netRepSize()

virtual int DtIfRwrDataUnsubscribe::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 DtIfRwrDataUnsubscribe::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 DtIfRwrDataUnsubscribe::setToNet ( )
overridevirtual

Serializes the message for network transmission.

Returns
True if serialization was successful

Prepares the message for network transmission.

◆ printDataToString()

virtual void DtIfRwrDataUnsubscribe::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 * DtIfRwrDataUnsubscribe::creator ( )
static

Static creator function for factory registration.

Returns
Pointer to a new instance of DtIfRwrDataUnsubscribe

This static function is used for registration with DtInterfaceContentFactory.

Member Data Documentation

◆ myUUID

DtUUID DtIfRwrDataUnsubscribe::myUUID
protected

UUID of the entity whose RWR data is being unsubscribed from.


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