VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
transmitter.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 ~DtRadioTransmitterStrategy();
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 handleCSharpTransmitterDiscovered(DtMessage* msg);
48  static void vrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx, void* usr);
49  void handleVrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx);
50 
51  void handleCSharpTransmitterRemoved(DtMessage* msg);
52  static void vrlTransmitterRemoved(DtReflectedRadioTransmitter* tx, void* usr);
53  void handleVrlTransmitterRemoved(DtReflectedRadioTransmitter* tx);
54 
55  void handleCSharpTransmitterState(DtMessage* msg);
56  static void vrlTransmitterState(DtReflectedRadioTransmitter* tx, void* usr);
57  void handleVrlTransmitterState(DtReflectedRadioTransmitter* tx);
59  virtual void addVrlCallback(DtExerciseConn* exConn);
60  virtual void removeVrlCallback(DtExerciseConn* exConn);
61 
63 
67 
70 };
DtReflectedRadioTransmitterList * myRelTx
Definition: transmitter.h:68
virtual void addVrlCallback(DtExerciseConn *exConn)=0
Add/Remove VR-Link C++ Interaction Callback.
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: exerciseConnDIS.h:61
static std::string theStrategyName
Definition: transmitter.h:45
DtExerciseConn * myExconn
Definition: transmitter.h:62
Definition: transmitter.h:29
This file provides protocol independence for DtReflectedRadioReceiverList.
DtMessageDelegate * myTransmitterStateHandler
Definition: transmitter.h:66
#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
The reflected list for Radio Transmitter objects.
Definition: reflectedRadioTransmitterDIS.h:33
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 * myTransmitterRemovedHandler
Definition: transmitter.h:65
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.
Defines a template for maintaining a list of VR-Link Publisher objects.
virtual void removeVrlCallback(DtExerciseConn *exConn)=0
Instances of DtRadioTransmitterPublisher are used for local or source simulations of radio transmitte...
Definition: radioTransmitterPublisherDIS.h:29
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
DtPublisherList< DtRadioTransmitterPublisher > * myTxPubs
Definition: transmitter.h:69
DtMessageDelegate * myTransmitterDiscoveredHandler
Definition: transmitter.h:64
Definition: reflectedRadioTransmitterListDIS.h:20

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)