VR-Forces 5.0.2 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
vrfDiGuyPrinter.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #if !DtLEGION
12 class DtExerciseConn;
13 
14 #if DtHLA
15 class DtReflectedDIGuyObject;
16 class DtReflectedDIGuyObjectList;
17 #else
19 class DtDIGuyCustomPdu;
20 class DtDIGuyCustomPduDecoder;
21 #endif
22 
24 
25 namespace makVrfEvents
26 {
27  class DtEvent;
28 }
29 
30 // Registers for all DI-Guy updates and prints the current state.
32 {
33 private:
35 
40 
41 public:
42 
44  virtual ~DtVrfDiGuyPrinter();
45 
46  virtual bool init();
47 
48 protected:
49  DtExerciseConn* exerciseConn();
50 
51 #if DtHLA
52 
54 
55  static void diGuyObjectAddedCallback(DtReflectedDIGuyObject* object, void* usr);
56  virtual void processDiGuyObjectAdded(DtReflectedDIGuyObject* object);
58 
60 
61  static void diGuyObjectUpdatedCallback(DtReflectedDIGuyObject* object, void* usr);
62  virtual void processDiGuyObjectUpdated(DtReflectedDIGuyObject* object);
64 
66 
67  static void diGuyObjectRemovedCallback(DtReflectedDIGuyObject* object, void* usr);
68  virtual void processDiGuyObjectRemoved(DtReflectedDIGuyObject* object);
70 
71 #else
72 
74 
75  virtual void diGuyUpdateCallback(const makVrfEvents::DtEvent&);
76  virtual void processDiGuyUpdate(DtDIGuyCustomPdu* pdu);
78 
79 #endif
80 
81 protected:
82 
84 
85 #if DtHLA
86  DtReflectedDIGuyObjectList* myReflectedDiGuyList;
87 #else
88  DtExtEntityStateRepository* myReflectedEntityStateRep;
89  DtDIGuyCustomPduDecoder* myDiGuyDecoder;
90 #endif
91 
92 };
93 
94 #endif
virtual ~DtVrfDiGuyPrinter()
virtual bool init()
DtExerciseConn * exerciseConn()
virtual void processDiGuyObjectRemoved(DtReflectedDIGuyObject *object)
Callback for the removal of DI-Guy objects.
Definition: vrfDiGuyPrinter.h:31
DtVrfDiGuyPrinter & operator=(const DtVrfDiGuyPrinter &orig)
Not implemented.
virtual void processDiGuyObjectAdded(DtReflectedDIGuyObject *object)
Callback for the addition of new DI-Guy objects.
Definition: event.h:13
DtExtEntityStateRepository class extends the DtExtEntityBaseStateRepository to be able to handle exte...
Definition: extEntityStateRepository.h:25
The DtCommunicationManager class is a convenience class that will create both the DtNetworkInterfaceM...
Definition: communicationManager.h:50
static void diGuyObjectRemovedCallback(DtReflectedDIGuyObject *object, void *usr)
Callback for the removal of DI-Guy objects.
static void diGuyObjectAddedCallback(DtReflectedDIGuyObject *object, void *usr)
Callback for the addition of new DI-Guy objects.
DtCommunicationManager * myEventManager
Definition: vrfDiGuyPrinter.h:83
virtual void processDiGuyObjectUpdated(DtReflectedDIGuyObject *object)
Callback for the update of DI-Guy objects.
DtVrfDiGuyPrinter()
Not implemented.
static void diGuyObjectUpdatedCallback(DtReflectedDIGuyObject *object, void *usr)
Callback for the update of DI-Guy objects.
DtReflectedDIGuyObjectList * myReflectedDiGuyList
Definition: vrfDiGuyPrinter.h:86

Document ID: Generated on Sun Dec 4 20:22:03 EST 2022 from SVN revision 249613
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)