VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
amoPublisher.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 namespace MAKVrExchange
18 {
19 
20  namespace DtTenaBroker
21  {
22 
23  class DtExerciseConn;
24  class DtTenaServantObject;
25  class DtAmoStateRepository;
26 
31  class DT_DLL_VLTENA DtAmoPublisher : public DtObjectPublisher
32  {
33  public:
34 
36  typedef DtAmoStateRepository* (*DtStateRepCreator)();
37 
38  public:
39 
42  DtAmoPublisher(
43  DtExerciseConn* conn,
44  const DtObjectId& id = DtObjectId::defaultId());
45 
47  virtual ~DtAmoPublisher();
48 
51  virtual bool tick();
52 
54  virtual DtAmoStateRepository* amoStateRep();
55 
57  virtual DtAmoStateRepository* asr();
58 
61  virtual DtString interfaceToUse() const;
62 
63  public:
64 
65  static void setStateRepCreator(DtStateRepCreator creator);
66  static DtStateRepCreator stateRepCreator();
67 
68  protected:
69 
72  void initialize();
73 
74  protected:
75 
76  DtAmoPublisher(const DtAmoPublisher& orig);
77 
78  DtAmoPublisher& operator=(const DtAmoPublisher& orig);
79 
80  protected:
81 
82  static DtStateRepCreator theStateRepCreator;
83 
84  };
85 
86  }
87 }
88 
89 #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)