VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtIffComponent Class Reference
+ Collaboration diagram for DtIffComponent:

Public Member Functions

 DtIffComponent (DtVehicleSim *owner, DtExerciseConn *conn, DtReflectedEntityList *rel, DtEntityStateRepository *esr)
 Construct an IFF component bound to a vehicle and its state/network context. More...
 
 ~DtIffComponent ()
 Destructor. More...
 
void sendMode5Interrogation (const DtGlobalObjectDesignator &tg)
 Send a non-lethal Mode 5 interrogation to a specific target entity. More...
 
void enable ()
 Lifecycle control for IFF transponder and interrogator. More...
 
void disable ()
 Disable the IFF transponder and interrogator publishers. More...
 
void toggle ()
 Toggle IFF system on or off. More...
 
void tick (double dt)
 Per-frame update; publishes IFF state when enabled. More...
 
void enableLethal ()
 Control and use lethal (Mode 5) interrogation capability. More...
 
void disableLethal ()
 Disable lethal (Mode 5) interrogation capability. More...
 
void toggleLethal ()
 Toggle lethal interrogation capability. More...
 
void sendLethalInterrogation (const DtGlobalObjectDesignator &tg)
 Send a lethal IFF interrogation to a specific target entity. More...
 

Protected Member Functions

void processLethalInterrogation (DtInterrogationInteraction *inter)
 Internal processing helpers and state accessors. More...
 
void processInterrogationReply (DtReplyInteraction *inter)
 Process replies to interrogations sent by this component. More...
 
bool enabled () const
 Return true if the IFF system is enabled. More...
 
bool lethalEnabled () const
 Return true if lethal interrogation is enabled. More...
 

Static Protected Member Functions

static void theLethalInterrogationCb (DtInterrogationInteraction *inter, void *self)
 Static callbacks used to hook IFF interactions and reflected IFF objects. More...
 
static void theIffReplyCb (DtReplyInteraction *inter, void *self)
 Callback used to receive replies to interrogations. More...
 
static void iffAddedCb (DtReflectedIff *obj, void *userData)
 Callback when a reflected IFF object is added to the list. More...
 
static void iffRemovedCb (DtReflectedIff *obj, void *userData)
 Callback when a reflected IFF object is removed from the list. More...
 
static void printIff (DtReflectedIff *obj, void *userData)
 Optional callback for printing reflected IFF state when it changes. More...
 

Protected Attributes

bool myEnabled
 Local flags controlling IFF and lethal-mode state. More...
 
bool myLethalEnabled
 
DtVehicleSim * myOwner
 Owning vehicle, shared context, publishers, and reflected objects. More...
 
DtExerciseConn * myExConn
 Owning vehicle, shared context, publishers, and reflected objects. More...
 
DtReflectedEntityList * myRel
 Owning vehicle, shared context, publishers, and reflected objects. More...
 
DtEntityStateRepository * myESR
 Owning vehicle, shared context, publishers, and reflected objects. More...
 
DtIffPublisher * myIffTransponderPub
 IFF publishers and list of reflected IFF objects in the exercise. More...
 
DtIffPublisher * myIffInterrogatorPub
 IFF publishers and list of reflected IFF objects in the exercise. More...
 
DtReflectedIffList * myRefIffList
 IFF publishers and list of reflected IFF objects in the exercise. More...
 

Constructor & Destructor Documentation

DtIffComponent::DtIffComponent ( DtVehicleSim *  owner,
DtExerciseConn *  conn,
DtReflectedEntityList *  rel,
DtEntityStateRepository *  esr 
)

Construct an IFF component bound to a vehicle and its state/network context.

DtIffComponent::~DtIffComponent ( )

Destructor.

Member Function Documentation

void DtIffComponent::disable ( )

Disable the IFF transponder and interrogator publishers.

void DtIffComponent::disableLethal ( )

Disable lethal (Mode 5) interrogation capability.

void DtIffComponent::enable ( )

Lifecycle control for IFF transponder and interrogator.

Enable the IFF transponder and interrogator publishers

bool DtIffComponent::enabled ( ) const
inlineprotected

Return true if the IFF system is enabled.

References myEnabled.

void DtIffComponent::enableLethal ( )

Control and use lethal (Mode 5) interrogation capability.

Enable lethal (Mode 5) interrogation capability

static void DtIffComponent::iffAddedCb ( DtReflectedIff *  obj,
void *  userData 
)
staticprotected

Callback when a reflected IFF object is added to the list.

static void DtIffComponent::iffRemovedCb ( DtReflectedIff *  obj,
void *  userData 
)
staticprotected

Callback when a reflected IFF object is removed from the list.

bool DtIffComponent::lethalEnabled ( ) const
inlineprotected

Return true if lethal interrogation is enabled.

References myLethalEnabled.

static void DtIffComponent::printIff ( DtReflectedIff *  obj,
void *  userData 
)
staticprotected

Optional callback for printing reflected IFF state when it changes.

void DtIffComponent::processInterrogationReply ( DtReplyInteraction *  inter)
protected

Process replies to interrogations sent by this component.

void DtIffComponent::processLethalInterrogation ( DtInterrogationInteraction *  inter)
protected

Internal processing helpers and state accessors.

Process an incoming lethal interrogation and generate an appropriate reply

void DtIffComponent::sendLethalInterrogation ( const DtGlobalObjectDesignator &  tg)

Send a lethal IFF interrogation to a specific target entity.

void DtIffComponent::sendMode5Interrogation ( const DtGlobalObjectDesignator &  tg)

Send a non-lethal Mode 5 interrogation to a specific target entity.

static void DtIffComponent::theIffReplyCb ( DtReplyInteraction *  inter,
void *  self 
)
staticprotected

Callback used to receive replies to interrogations.

static void DtIffComponent::theLethalInterrogationCb ( DtInterrogationInteraction *  inter,
void *  self 
)
staticprotected

Static callbacks used to hook IFF interactions and reflected IFF objects.

Callback used to receive lethal interrogation interactions

void DtIffComponent::tick ( double  dt)

Per-frame update; publishes IFF state when enabled.

void DtIffComponent::toggle ( )

Toggle IFF system on or off.

void DtIffComponent::toggleLethal ( )

Toggle lethal interrogation capability.

Member Data Documentation

bool DtIffComponent::myEnabled
protected

Local flags controlling IFF and lethal-mode state.

Referenced by enabled().

DtEntityStateRepository* DtIffComponent::myESR
protected

Owning vehicle, shared context, publishers, and reflected objects.

Owning vehicle and shared context/state

DtExerciseConn* DtIffComponent::myExConn
protected

Owning vehicle, shared context, publishers, and reflected objects.

Owning vehicle and shared context/state

DtIffPublisher* DtIffComponent::myIffInterrogatorPub
protected

IFF publishers and list of reflected IFF objects in the exercise.

DtIffPublisher* DtIffComponent::myIffTransponderPub
protected

IFF publishers and list of reflected IFF objects in the exercise.

bool DtIffComponent::myLethalEnabled
protected

Referenced by lethalEnabled().

DtVehicleSim* DtIffComponent::myOwner
protected

Owning vehicle, shared context, publishers, and reflected objects.

Owning vehicle and shared context/state

DtReflectedIffList* DtIffComponent::myRefIffList
protected

IFF publishers and list of reflected IFF objects in the exercise.

DtReflectedEntityList* DtIffComponent::myRel
protected

Owning vehicle, shared context, publishers, and reflected objects.

Owning vehicle and shared context/state


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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)