VR-Link C# API Documentation
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
entityDiscovered.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/managedInterface.h"
11 #include "managedInterface/publisherList.h"
12 
13 #include <vlpi/entityIdentifier.h>
14 
15 #include <string>
16 #include <list>
17 
18 class DtMessage;
19 class DtManagedInterface;
20 class DtExerciseConn;
21 class DtReflectedEntity;
22 class DtReflectedEntityList;
23 class DtEntityPublisher;
24 
26 {
27 public:
28  virtual ~DtEntityDiscoveredStrategy();
29 
30  std::string name();
31  static std::string theName();
32 
33  virtual bool init();
34  virtual void tick();
35  virtual void shutdown();
36 
37  static DtLinkStrategy* create(DtManagedInterface* gl);
38 
39 protected:
40  DtEntityDiscoveredStrategy(DtManagedInterface* link);
41  void handleCSharpEntityDiscovered(DtMessage* msg);
42 
43  static void vrlEntityDiscovered(DtReflectedEntity* ent, void* usr);
44  void handleVrlEntityDiscovered(DtReflectedEntity* ent);
45 
46  DtReflectedEntityList* myRel;
47  DtPublisherList<DtEntityPublisher>* myPubs;
48 
49  static std::string theStrategyName;
50  DtMessageDelegate* myHandler;
51 };

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)