VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
linkStrategy.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 
12 
14 
15 #include <vlutil/vlPrint.h>
16 
17 #include <string>
18 #include <list>
19 
20 class DtMessage;
21 class DtManagedInterface;
22 
25 {
26 public:
28  DtLinkStrategy(const std::string& name, DtManagedInterface* link);
29 
31  virtual ~DtLinkStrategy();
32 
34  std::string name();
35 
38  virtual bool init()=0;
39 
41  virtual void tick();
42 
44  virtual void shutdown();
45 
48  //{@
49  virtual void addChildStrategy(DtLinkStrategy* strategy);
50  virtual bool removeChildStrategy(const std::string& name);
51  virtual DtLinkStrategy* findStrategy(const std::string& name);
53 
57  virtual std::string& makeEmbeddedKey(std::string& embeddedKey,
58  const std::string& hostGlobalId, unsigned embeddedIndex, const char* descriptor=nullptr);
59 
60 protected:
62  std::string myName;
63  std::string myEmbeddedKey; // Used in makeEmbeddedKey as convenient scratch pad
64 
66 
67  std::list<DtLinkStrategy*> myChildStrategies;
68 };
#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
The DtManagedInterface Class is a singleton that is used to manage the message flow between C# and th...
Definition: managedInterface.h:50
MANAGEDINTERFACE_DLL void tick(double maxTime)
Tick ManagedInterface.

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)