VR-Link C# API Documentation
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
laserDesignator.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
8 #include "managedInterface/linkStrategy.h"
9 #include "managedInterface/delegate.h"
10 #include "managedInterface/publisherList.h"
11 
12 #include <vl/designatorPublisher.h>
13 #include <vl/reflectedDesignator.h>
14 #include <vl/reflectedDesignatorList.h>
15 
16 #include <string>
17 #include <map>
18 
19 
20 class DtMessage;
21 class DtManagedInterface;
22 class DtExerciseConn;
23 
24 class DtLaserDesignatorPublisher;
25 
27 {
28 public:
30 
31  std::string name();
32  static std::string theName();
33 
34  virtual bool init();
35  virtual void tick();
36  virtual void shutdown();
37 
38  static DtLinkStrategy* create(DtManagedInterface* gl);
39 
40 protected:
41  DtLaserDesignatorStrategy(DtManagedInterface* link);
42  static std::string theStrategyName;
43 
45  static void vrlDesignatorDiscovered(DtReflectedDesignator* dx, void* usr);
46  void handleVrlDesignatorDiscovered(DtReflectedDesignator* dx);
47 
49  static void vrlDesignatorRemoved(DtReflectedDesignator* dx, void* usr);
50  void handleVrlDesignatorRemoved(DtReflectedDesignator* dx);
51 
53  static void vrlDesignatorState(DtReflectedDesignator* dx, void* usr);
54  void handleVrlDesignatorState(DtReflectedDesignator* dx);
55 
56  DtExerciseConn* myExconn;
57 
58  DtMessageDelegate* myDesignatorDiscoveredHandler;
59  DtMessageDelegate* myDesignatorRemovedHandler;
60  DtMessageDelegate* myDesignatorStateHandler;
61 
62  DtReflectedDesignatorList* myRelDx;
63  DtPublisherList<DtDesignatorPublisher>* myDxPubs;
64 };

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)