VR-Link API Documentation for HLA 1516
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strategies/detonate.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 
11 
12 #include "strategies/export.h"
16 
18 
19 #include <string>
20 #include <map>
21 
22 class DtMessage;
23 class DtManagedInterface;
24 class DtExerciseConn;
25 
28 {
29 public:
31  virtual ~DtDetonationStrategy();
32 
34  std::string name();
35 
37  static std::string theName();
38 
40  virtual bool init();
41 
43  virtual void tick();
44 
46  virtual void shutdown();
47 
50 
51 protected:
57  static void vrlDetonateCb(DtDetonationInteraction* det, void* usr);
61  virtual void addVrlCallback(DtExerciseConn* exConn);
62  virtual void removeVrlCallback(DtExerciseConn* exConn);
63 
65 
66  static std::string theStrategyName;
67 
69 };
virtual void removeVrlCallback(DtExerciseConn *exConn)
DtDetonationStrategy(DtManagedInterface *link)
constructor
Instances of DtDetonationInteraction are used to communicate information associated with the impact o...
Definition: detonationInteractionHLA.h:37
static std::string theStrategyName
Definition: strategies/detonate.h:66
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:58
void handleCSharpDetonateMessage(DtMessage *msg)
Handle detonate messages from C#.
static void vrlDetonateCb(DtDetonationInteraction *det, void *usr)
Static callback for registering with VR-Link.
static std::string theName()
get the strategy name (statically)
virtual ~DtDetonationStrategy()
destructor
virtual void shutdown()
shutdown
This is the DtMessage class.
Definition: message.h:20
virtual void tick()
tick
std::string name()
Get the strategy name.
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
virtual void addVrlCallback(DtExerciseConn *exConn)
Add/Remove VR-Link C++ Interaction Callback.
void handleVrlDetonate(DtDetonationInteraction *det)
Handle VR-Link detonation messages for sending to C#.
DtExerciseConn * myExconn
Definition: strategies/detonate.h:64
This is the DtSubscribeStrategy class. It is the abstract base class for all derived interaction subs...
Definition: subscribeStrategy.h:27
DtDetonationStrategy class.
Definition: strategies/detonate.h:27
Defines the DtManagedInterface Singleton object that manages the message flow between C# and the rest...
virtual bool init()
initialize
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
This file provides protocol independence for Detonation Interactions.
DtMessageDelegate * myHandler
Definition: strategies/detonate.h:68
static DtLinkStrategy * create(DtManagedInterface *gl)
Static create function.

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)