VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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"
11 
12 #include <string>
13 
15 
16 class DtMessage;
17 class DtManagedInterface;
18 class DtExerciseConn;
19 class DtClock;
20 
22 {
23 public:
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 
48 
49  static std::string theStrategyName;
50 
55 
56  std::list<std::string> myInitChildren;
57 };

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)