VR-Link C# API Documentation
 All Classes Files Functions Variables Enumerations Enumerator Macros 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"
9 #include "managedInterface/linkStrategy.h"
10 #include "managedInterface/delegate.h"
11 #include "managedInterface/publisherList.h"
12 
13 #include <string>
14 #include <map>
15 
16 #include <vl/radioTransmitterPublisher.h>
17 #include <vl/reflectedRadioTransmitterList.h>
18 #include <vl/radioReceiverPublisher.h>
19 #include <vl/reflectedRadioReceiverList.h>
20 #include <vl/signalInteraction.h>
21 
22 class DtMessage;
23 class DtManagedInterface;
24 class DtExerciseConn;
25 
26 class DtRadioTransmitterPublisher;
27 
29 {
30 public:
31  virtual ~DtRadioTransmitterStrategy();
32 
33  std::string name();
34  static std::string theName();
35 
36  virtual bool init();
37  virtual void tick();
38  virtual void shutdown();
39 
40  static DtLinkStrategy* create(DtManagedInterface* gl);
41 
42 protected:
43  DtRadioTransmitterStrategy(DtManagedInterface* link);
44  static std::string theStrategyName;
45 
46  void handleCSharpTransmitterDiscovered(DtMessage* msg);
47  static void vrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx, void* usr);
48  void handleVrlTransmitterDiscovered(DtReflectedRadioTransmitter* tx);
49 
50  void handleCSharpTransmitterRemoved(DtMessage* msg);
51  static void vrlTransmitterRemoved(DtReflectedRadioTransmitter* tx, void* usr);
52  void handleVrlTransmitterRemoved(DtReflectedRadioTransmitter* tx);
53 
54  void handleCSharpTransmitterState(DtMessage* msg);
55  static void vrlTransmitterState(DtReflectedRadioTransmitter* tx, void* usr);
56  void handleVrlTransmitterState(DtReflectedRadioTransmitter* tx);
57 
58  DtExerciseConn* myExconn;
59 
60  DtMessageDelegate* myTransmitterDiscoveredHandler;
61  DtMessageDelegate* myTransmitterRemovedHandler;
62  DtMessageDelegate* myTransmitterStateHandler;
63 
64  DtReflectedRadioTransmitterList* myRelTx;
65  DtPublisherList<DtRadioTransmitterPublisher>* myTxPubs;
66 };

Document ID: Generated on Fri May 15 06:36:13 EDT 2015 from SVN revision 153263
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)