VR-Link API Documentation for HLA 1516
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
strategies
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
21
class
MANAGEDINTERFACE_MODULE_DLL
DtInitStrategy
:
public
DtLinkStrategy
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 Dec 2 02:42:08 EST 2016 from SVN revision 171416
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)