VR-Link C# API Documentation
 All Classes Files Functions Variables Enumerations Enumerator Macros Pages
init.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 
12 #include <string>
13 
14 #include <vl/globalObjectDesignator.h>
15 
16 class DtMessage;
17 class DtManagedInterface;
18 class DtExerciseConn;
19 class DtClock;
20 
22 {
23 public:
24  DtInitStrategy(DtManagedInterface* link);
25  virtual ~DtInitStrategy();
26 
27  static std::string theName();
28 
29  virtual bool init();
30  virtual void tick();
31  virtual void shutdown();
32 
33  static DtGlobalObjectDesignator convertToVrlinkId(std::string id );
34 
35  static DtLinkStrategy* create(DtManagedInterface* gl);
36 
37  virtual void addInitChild(std::string name);
38  virtual void removeInitChild(std::string name);
39 
40 protected:
41  void handleInitMsg(DtMessage* msg);
42  void handleSimTimeMsg(DtMessage* msg);
43  void handleDisableStrategyMsg(DtMessage* msg);
44  void handleEnableStrategyMsg(DtMessage* msg);
45 
46  DtExerciseConn* myExConn;
47  DtClock* myClock;
48 
49  static std::string theStrategyName;
50 
51  DtMessageDelegate* myInitHandler;
52  DtMessageDelegate* mySimTimeHandler;
53  DtMessageDelegate* myDisableStrategyHandler;
54  DtMessageDelegate* myEnableStrategyHandler;
55 
56  std::list<std::string> myInitChildren;
57 };

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)