OpenDaVINCI  4.16.0
ControlledTimeFactory.h
Go to the documentation of this file.
1 
20 #ifndef CONTEXT_BASE_CONTROLLEDTIMEFACTORY_H_
21 #define CONTEXT_BASE_CONTROLLEDTIMEFACTORY_H_
22 
24 #include <memory>
28 
29 namespace odcore { namespace wrapper { class Time; } }
30 
31 namespace odcontext {
32  namespace base {
33 
34  using namespace std;
35 
40  private:
47 
53  ControlledTimeFactory& operator=(const ControlledTimeFactory &);
54 
55  public:
57 
58  virtual ~ControlledTimeFactory();
59 
60  virtual std::shared_ptr<odcore::wrapper::Time> now();
61 
67  void setTime(const ControlledTime &ct);
68 
69  private:
70  odcore::base::Mutex m_timeMutex;
71  ControlledTime m_time;
72  };
73 
74  }
75 } // odcontext::base
76 
77 #endif /*CONTEXT_BASE_CONTROLLEDTIMEFACTORY_H_*/
Definition: base/Mutex.h:49
Definition: Time.h:34
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: ControlledTimeFactory.h:39
Definition: TimeFactory.h:59
Definition: ControlledTime.h:32