VR-Link API Documentation for HLA 1.3
 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  const char* myIdTag = "trans";
47 
48  void handleCSharpTransmitterDiscovered(DtMessage* msg);
49  static void vrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx, void* usr);
50  void handleVrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx);
51 
52  void handleCSharpTransmitterRemoved(DtMessage* msg);
53  static void vrlTransmitterRemoved(DtReflectedRadioTransmitter* tx, void* usr);
54  void handleVrlTransmitterRemoved(DtReflectedRadioTransmitter* tx);
55 
56  void handleCSharpTransmitterState(DtMessage* msg);
57  static void vrlTransmitterState(DtReflectedRadioTransmitter* tx, void* usr);
58  void handleVrlTransmitterState(DtReflectedRadioTransmitter* tx);
60  virtual void addVrlCallback(DtExerciseConn* exConn);
61  virtual void removeVrlCallback(DtExerciseConn* exConn);
62 
64 
68 
71 };
DtReflectedRadioTransmitterList * myRelTx
Definition: transmitter.h:69
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: exerciseConnHLA.h:61
static std::string theStrategyName
Definition: transmitter.h:45
DtExerciseConn * myExconn
Definition: transmitter.h:63
Definition: transmitter.h:29
This file provides protocol independence for DtReflectedRadioReceiverList.
DtMessageDelegate * myTransmitterStateHandler
Definition: transmitter.h:67
#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 DtReflectedRadioTransmitter:
Definition: reflectedRadioTransmitterHLA.h:32
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:66
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
class DtRadioTransmitterPublisher:
Definition: radioTransmitterPublisherHLA.h:27
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:70
DtMessageDelegate * myTransmitterDiscoveredHandler
Definition: transmitter.h:65
class DtReflectedRadioTransmitterList:
Definition: reflectedRadioTransmitterListHLA.h:25

Document ID: Generated on Thu Sep 19 02:12:35 EDT 2024 from SVN revision 269601
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)