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 };
DtMessageDelegate * myInitHandler
Definition: init.h:51
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
static std::string theStrategyName
Definition: init.h:49
DtClock * myClock
Definition: init.h:47
Used to set and maintain time in a simulation.
Definition: vlTime.h:25
This file contains typedefs used to represent objects in a protocol neutral way.
#define MANAGEDINTERFACE_MODULE_DLL
Definition: export.h:34
This is the DtMessage class.
Definition: message.h:20
DtMessageDelegate * myEnableStrategyHandler
Definition: init.h:54
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
std::list< std::string > myInitChildren
Definition: init.h:56
Definition: init.h:21
DtMessageDelegate * myDisableStrategyHandler
Definition: init.h:53
Defines the DtManagedInterface Singleton object that manages the message flow between C# and the rest...
DtExerciseConn * myExConn
Definition: init.h:46
Instances of DtString are used to represent strings.
Definition: vlString.h:29
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
DtMessageDelegate * mySimTimeHandler
Definition: init.h:52

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)