VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
interrogationInteractionHLA.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 
9 
10 #pragma once
11 
12 #if DtHLA
13 
15 #include <vl/iffDatatypes.h>
16 #include <vlutil/vlString.h>
18 
19 class DtExerciseConn;
21 
24  void* usr);
25 
30 {
31 public:
32 
35 
37  virtual ~DtInterrogationInteraction();
38 
41 
44 
46  virtual void printData() const;
47 
49  virtual void printDataToStream(std::ostream& stream) const;
50 
52  virtual void setLethal(bool val);
54  virtual bool isLethal() const;
55 
57  virtual const char* name() const { return "DtInterrogationInteraction"; }
58 
59 public:
60 
63  static DtInteraction* create();
64 
67  static void addCallback(DtExerciseConn* conn,
68  DtInterrogationInteractionCb cb, void* usr,
69  DtDDMRegionSP region = DtDDMRegionSP());
70  static void removeCallback(DtExerciseConn* conn,
71  DtInterrogationInteractionCb cb, void* usr,
72  DtDDMRegionSP region = DtDDMRegionSP());
73 
74 protected:
75  virtual const char* interactionClassToUse(DtExerciseConn* exConn) const;
76 
77  virtual DtInteractionDecoder* createDecoder(DtExerciseConn* exConn) const;
78  virtual DtInteractionEncoder* createEncoder(DtExerciseConn* exConn) const;
79 
80 
81 protected:
82  bool myLethal;
83 
84 };
85 
86 
87 #endif
DtInteraction is an base class for representing DIS PDUs which don&#39;t have state.
Definition: interactionDIS.h:24
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnDIS.h:62
#define DT_DLL_VL
Definition: vlMachineTypes.h:108
Contains the DtString class declaration.
virtual bool isLethal() const
Lethal accessor.
void(* DtInterrogationInteractionCb)(DtInterrogationInteraction *inter, void *usr)
Definition: iffAtcNavaidsPdu.h:57
This file contains typedefs used to represent objects in a protocol neutral way.
Instances of DtIffAtcNavaidsPdu are used to send information about simulated radio transponders and i...
Definition: iffAtcNavaidsPdu.h:74
DtIffAtcNavaidsPdu & operator=(const DtIffAtcNavaidsPdu &orig)
Assignment operator.
static void removeCallback(DtExerciseConn *conn, DtIffAtcNavaidsPduCb cb, void *usr)
virtual void setLethal(bool val)
Set Lethal Interrogation Indicates if this interrogation is a lethal interrogation.
static void addCallback(DtExerciseConn *conn, DtIffAtcNavaidsPduCb cb, void *usr)
Add (register)/Remove (unregister) function to be called when pdu is received.
static DtPdu * create(const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER, DtPduFactory *pduFactory=0)
Create a DtIffAtcNavaidsPdu.
Contains the IFF datatypes for RPR 3.
virtual void printDataToStream(std::ostream &stream) const
Print the data to a stream.
virtual void printData() const
Print the data contained by this PDU.
DtIffAtcNavaidsPdu DtInterrogationInteraction
Instances of DtInterrogationInteraction are used to represent the HLAinteractionRoot.IFFEmissions.Interrogation interaction.
Definition: iffAtcNavaidsPdu.h:56

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)