VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strategies/attributeChangeRequest.h
Go to the documentation of this file.
1 /*********************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************************/
5 
6 #pragma once
7 
11 
12 #ifdef DtHLA
13 
14 #include "strategies/export.h"
18 
20 
21 #include <string>
22 
23 class DtMessage;
24 class DtManagedInterface;
25 class DtExerciseConn;
26 
28 class DtAttributeChangeRequestStrategy : public DtSubscribeStrategy
29 {
30 public:
32  virtual ~DtAttributeChangeRequestStrategy();
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 
50  static DtLinkStrategy* create(DtManagedInterface* gl);
51 
52 protected:
54  DtAttributeChangeRequestStrategy(DtManagedInterface* link);
56  void handleCSharpMessage(DtMessage* msg);
58  static void vrlCb(DtAttributeChangeReqInter* det, void* usr);
60  void handleVrl(DtAttributeChangeReqInter* det);
62  virtual void addVrlCallback(DtExerciseConn* exConn);
63  virtual void removeVrlCallback(DtExerciseConn* exConn);
64  virtual RTI::ObjectClassHandle classFromObjectId(std::string instName);
65  DtExerciseConn* myExconn;
66 
67  static std::string theStrategyName;
68 
69  DtMessageDelegate* myHandler;
70 };
71 #endif

Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)