VR-Link API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
subscribeStrategy.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
11 
14 #include "messages/subscribe.h"
16 
17 #include <vlutil/vlPrint.h>
18 
19 #include <string>
20 #include <list>
21 
22 class DtMessage;
23 class DtManagedInterface;
24 class DtExerciseConn;
25 
28 {
29 public:
31  DtSubscribeStrategy(std::string name, DtManagedInterface* link, std::string subscribeClassName, SubscribeMessage::SubscribeType subscribeType);
32 
34  virtual ~DtSubscribeStrategy();
35 
37  virtual void shutdown();
38  void handleSubscriptionChange(DtMessage* msg);
39 
40 protected:
41 
43  virtual void addVrlCallback(DtExerciseConn* exConn) = 0;
44  virtual void removeVrlCallback(DtExerciseConn* exConn) = 0;
45 
48  std::string myClassName;
50 };
Defines a single parameter delegate to make binding member function pointers easier.
Instances of DtExerciseConn are used to provide an application&#39;s interface or connection to the netwo...
Definition: exerciseConnHLA.h:61
#define MANAGEDINTERFACE_DLL
Definition: plugin.h:15
Functions in vlPrint.h provide an error and print facility for vrlink.
This is the DtMessage class.
Definition: message.h:20
SubscribeMessage::SubscribeType mySubscriptionType
Definition: subscribeStrategy.h:49
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:50
SubscribeType
Definition: subscribe.h:20
This is the DtSubscribeStrategy class. It is the abstract base class for all derived interaction subs...
Definition: subscribeStrategy.h:27
bool mySubscribed
Definition: subscribeStrategy.h:47
std::string myClassName
Definition: subscribeStrategy.h:48
DtMessageDelegate * mySubscriptionChangeHandler
Definition: subscribeStrategy.h:46
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)