VR-Exchange 2.5 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
reflectedAmo.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #if DtTENA
11 
12 #pragma once
13 
14 #include <vlTena/reflectedObject.h>
16 #include <vl/globalObjectDesignator.h>
17 
18 namespace MAKVrExchange
19 {
20 
21  namespace DtTenaBroker
22  {
23 
24  class DtExerciseConn;
25  class DtReflectedAmo;
26 
28  typedef void (*DtAmoCallbackFunction)( DtReflectedAmo* obj, void* userData );
29 
33  class DT_DLL_VLTENA DtReflectedAmo : public DtReflectedObject
34  {
35  public:
36 
39  typedef DtAmoStateRepository* (*DtStateRepCreator)();
40 
41  public:
42 
44  DtReflectedAmo(DtExerciseConn* conn);
45 
47  virtual ~DtReflectedAmo();
48 
50  virtual DtReflectedAmo* next() const;
51 
54  virtual DtAmoStateRepository* amoRep() const;
55 
57  virtual DtAmoStateRepository* asr() const;
58 
60  virtual DtReflectedAmo* prev() const;
61 
64  virtual DtReflectedAmo* wrapNext() const;
65 
68  virtual DtReflectedAmo* wrapPrev() const;
69 
71  void removePostUpdateCallback( DtAmoCallbackFunction , void* );
72 
74  void addPostUpdateCallback( DtAmoCallbackFunction , void* );
75 
77  virtual const DtObjectId& id() const;
78 
80  virtual const DtGlobalObjectDesignator& globalId() const;
81 
83  virtual void printDataToStream(std::ostream& str) const;
84 
86  static DtStateRepCreator setStateRepCreator(DtStateRepCreator creator);
87 
88  private:
89 
91  DtReflectedAmo(const DtReflectedAmo& orig);
92 
94  DtReflectedAmo& operator=(const DtReflectedAmo& orig);
95 
96  protected:
97 
98  static DtStateRepCreator theStateRepCreator;
99 
100  };
101 
102  inline DtAmoStateRepository* DtReflectedAmo::amoRep() const
103  {
104  return (DtAmoStateRepository*) myStateRep;
105  }
106 
107  inline DtAmoStateRepository* DtReflectedAmo::asr() const
108  {
109  return (DtAmoStateRepository*) myStateRep;
110  }
111 
112  }
113 }
114 
115 #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)