OpenDaVINCI  4.15.3
AbstractDataStore.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_BASE_ABSTRACTDATASTORE_H_
21 #define OPENDAVINCI_CORE_BASE_ABSTRACTDATASTORE_H_
22 
25 
26 namespace odcore { namespace data { class Container; } }
27 
28 namespace odcore {
29  namespace base {
30 
35  public:
37 
38  virtual ~AbstractDataStore();
39 
43  virtual void waitForData();
44 
48  virtual void wakeAll();
49 
56  virtual void add(odcore::data::Container &container) = 0;
57 
61  virtual void clear() = 0;
62 
67  virtual uint32_t getSize() const = 0;
68 
74  virtual bool isEmpty() const = 0;
75 
76  protected:
80  virtual void wait();
81 
82  private:
83  Condition m_condition;
84  };
85 
86  }
87 } // odcore::base
88 
89 #endif /*OPENDAVINCI_CORE_BASE_ABSTRACTDATASTORE_H_*/
Definition: base/Condition.h:64
Definition: Container.h:40
#define OPENDAVINCI_API
Definition: opendavinci.h:67
Definition: AbstractDataStore.h:34