VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
receiver.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include "strategies/export.h"
13 
14 #include <string>
15 #include <map>
16 
21 #include <vl/signalInteraction.h>
22 
23 class DtMessage;
24 class DtManagedInterface;
25 class DtExerciseConn;
26 
28 
30 {
31 public:
32  virtual ~DtRadioReceiverStrategy();
33 
34  std::string name();
35  static std::string theName();
36 
37  virtual bool init();
38  virtual void tick();
39  virtual void shutdown();
40 
41  static DtLinkStrategy* create(DtManagedInterface* gl);
42 
43 protected:
45  static std::string theStrategyName;
46 
47  void handleCSharpReceiverDiscovered(DtMessage* msg);
48  static void vrlReceiverDiscovered(DtReflectedRadioReceiver* rx, void* usr);
49  void handleVrlReceiverDiscovered(DtReflectedRadioReceiver* rx);
50 
51  void handleCSharpReceiverRemoved(DtMessage* msg);
52  static void vrlReceiverRemoved(DtReflectedRadioReceiver* rx, void* usr);
53  void handleVrlReceiverRemoved(DtReflectedRadioReceiver* rx);
54 
55  void handleCSharpReceiverState(DtMessage* msg);
56  static void vrlReceiverState(DtReflectedRadioReceiver* rx, void* usr);
57  void handleVrlReceiverState(DtReflectedRadioReceiver* rx);
59  virtual void addVrlCallback(DtExerciseConn* exConn);
60  virtual void removeVrlCallback(DtExerciseConn* exConn);
61 
63 
67 
70 };
virtual void addVrlCallback(DtExerciseConn *exConn)=0
Add/Remove VR-Link C++ Interaction Callback.
DtReflectedRadioReceiverList * myRelRx
Definition: receiver.h:68
Defines a single parameter delegate to make binding member function pointers easier.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
Definition: receiver.h:29
static std::string theStrategyName
Definition: receiver.h:45
This file provides protocol independence for DtReflectedRadioReceiverList.
DtMessageDelegate * myReceiverRemovedHandler
Definition: receiver.h:65
#define MANAGEDINTERFACE_MODULE_DLL
Definition: export.h:34
This file provides protocol independence for Signal Interactions.
This file provides protocol independence for DtRadioTransmitterPublisher.
This is the DtMessage class.
Definition: message.h:20
class DtRadioReceiverPublisher:
Definition: radioReceiverPublisherHLA.h:27
DtExerciseConn * myExconn
Definition: receiver.h:62
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
This file provides protocol independence for DtRadioReceiverPublisher.
DtMessageDelegate * myReceiverStateHandler
Definition: receiver.h:66
class DtReflectedRadioReceiverList:
Definition: reflectedRadioReceiverListHLA.h:26
This file provides protocol independence for DtReflectedRadioTransmitterList.
This is the DtSubscribeStrategy class. It is the abstract base class for all derived interaction subs...
Definition: subscribeStrategy.h:27
virtual void shutdown()
Shutdown the strategy.
DtPublisherList< DtRadioReceiverPublisher > * myRxPubs
Definition: receiver.h:69
Defines a template for maintaining a list of VR-Link Publisher objects.
virtual void removeVrlCallback(DtExerciseConn *exConn)=0
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
class DtReflectedRadioReceiver:
Definition: reflectedRadioReceiverHLA.h:32
DtMessageDelegate * myReceiverDiscoveredHandler
Definition: receiver.h:64

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)