VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
aggregatePublisher.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2014 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
14 #include <vlTena/objectPublisher.h>
15 #include <vl/objectId.h>
16 
17 class DtAggregateStateRepository;
18 
19 namespace MAKVrExchange
20 {
21 
22  namespace DtTenaBroker
23  {
24 
25  class DtExerciseConn;
26  class DtTenaServantObject;
27 
31  class DT_DLL_VLTENA DtAggregatePublisher : public DtObjectPublisher
32  {
33  public:
34 
36  typedef DtAggregateStateRepository* (*DtStateRepCreator)();
37 
38  public:
39 
42  DtAggregatePublisher(
43  DtExerciseConn* conn,
44  const DtObjectId& id = DtObjectId::defaultId());
45 
47  virtual ~DtAggregatePublisher();
48 
51  virtual bool tick();
52 
54  virtual DtAggregateStateRepository* aggregateStateRep();
55 
57  virtual DtAggregateStateRepository* asr();
58 
61  virtual DtString interfaceToUse() const;
62 
67  virtual void setUseDRThresholding(bool yesNo);
68 
70  virtual bool useDRThresholding() const;
71 
72  static void setStateRepCreator(DtStateRepCreator creator);
73  static DtStateRepCreator stateRepCreator();
74 
75  protected:
76 
79  void initialize();
80 
81  protected:
82 
83  DtAggregatePublisher( const DtAggregatePublisher& orig );
84 
85  DtAggregatePublisher& operator = ( const DtAggregatePublisher& orig );
86 
87  protected:
88 
89  static DtStateRepCreator theStateRepCreator;
90  bool myUseDRThresholding;
91 
92  };
93 
94  }
95 }
96 
97 #endif // DtTENA

Document ID: Generated on Wed Dec 21 15:05:11 EST 2016 from SVN revision 171891
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)