VR-Link API Documentation for HLA Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strategies/acknowledge.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 class DtTerrainStrategy;
26 
29 {
30 public:
32  virtual ~DtAcknowledgeStrategy();
33 
35  std::string name();
36 
38  static std::string theName();
39 
41  virtual bool init();
42 
44  virtual void tick();
45 
47  virtual void shutdown();
48 
51 
52 protected:
58  static void vrlAcknowledgeCb(DtAcknowledgeInteraction* ack, void* usr);
64  virtual void addVrlCallback(DtExerciseConn* exConn);
65  virtual void removeVrlCallback(DtExerciseConn* exConn);
66 
68 
69  static std::string theStrategyName;
70 
72 };
void handleVrlAcknowledge(DtAcknowledgeInteraction *ack)
Handle VR-Link acknowledge messages for sending to C#.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:60
This file provides protocol independence for DtAcknowledgeInteraction.
std::string name()
Get the strategy name.
static DtLinkStrategy * create(DtManagedInterface *gl)
Static create function.
DtExerciseConn * myExconn
Definition: strategies/acknowledge.h:67
static std::string theName()
get the strategy name (statically)
This is the DtMessage class.
Definition: message.h:20
DtAcknowledgeStrategy(DtManagedInterface *link)
constructor
static std::string theStrategyName
Definition: strategies/acknowledge.h:69
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:49
virtual void tick()
tick
static void vrlAcknowledgeCb(DtAcknowledgeInteraction *ack, void *usr)
Static callback for registering with VR-Link.
void handleCSharpAcknowledgeMessage(DtMessage *msg)
Handle acknowledge messages from C#.
Instances of DtAcknowledgeInteraction are used to represent Acknowledge Interactions in the RPR ROM...
Definition: acknowledgeInteractionHLA.h:34
virtual void shutdown()
shutdown
This is the DtSubscribeStrategy class. It is the abstract base class for all derived interaction subs...
Definition: subscribeStrategy.h:27
virtual bool init()
initialize
DtAcknowledgeStrategy class.
Definition: strategies/acknowledge.h:28
Defines the DtManagedInterface Singleton object that manages the message flow between C# and the rest...
virtual void addVrlCallback(DtExerciseConn *exConn)
Add/Remove VR-Link C++ Interaction Callback.
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
virtual ~DtAcknowledgeStrategy()
destructor
void handleSubscriptionChange(DtMessage *msg)
Handle VR-Link Subscribe messages.
virtual void removeVrlCallback(DtExerciseConn *exConn)
DtMessageDelegate * myHandler
Definition: strategies/acknowledge.h:71

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)