VR-Exchange 2.10 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
objectPublisher.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2015 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
14 #include <vlTena/dllExport.h>
15 
16 #include <vlutil/vlMachineTypes.h>
17 
18 #include <vl/globalObjectDesignator.h>
19 #include <vl/objectId.h>
20 
21 class DtStateRepository;
22 
23 namespace MAKVrExchange
24 {
25 
26  namespace DtTenaBroker
27  {
28 
29  class DtExerciseConn;
30  class DtTenaServantObject;
31 
32  class DT_DLL_VLTENA DtObjectPublisher
33  {
34  public:
35 
36  DtObjectPublisher( DtExerciseConn* exConn, DtStateRepository* stateRep,
37  DtStateRepository* asSeenByRemote, const DtObjectId& id );
38 
39  virtual ~DtObjectPublisher();
40 
43  virtual bool tick();
44 
47  virtual void forceUpdate();
48 
50  virtual const DtObjectId& id() const;
51 
53  virtual const DtObjectId& localId() const;
54 
56  virtual const DtGlobalObjectDesignator& globalId() const;
57 
58  virtual DtString interfaceToUse() const = 0;
59 
60  virtual DtStateRepository* sr();
61  virtual const DtStateRepository* sr() const;
62 
63  protected:
64 
65  void createServantObject(const DtString& interfaceName);
66 
67  protected:
68 
69  DtObjectPublisher(const DtObjectPublisher& orig);
70 
71  DtObjectPublisher& operator=(const DtObjectPublisher& orig);
72 
73  protected:
74 
75  DtObjectId myId;
76  DtExerciseConn* myExConn;
77  DtStateRepository* myStateRep;
78  DtStateRepository* myAsSeenByRemoteRep;
79  DtTenaServantObject* myServantObject;
80  bool myForceUpdate;
81  DtString myInterfaceName;
82 
83  };
84 
85  }
86 }
87 
88 #endif // DtTENA
#define DT_DLL_VLTENA
Definition: brokers/tenaBroker/vlTena/dllExport.h:26

Document ID: Generated on Mon May 25 18:45:12 EDT 2026 from SVN revision 289111
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)