OpenDaVINCI  4.15.3
SharedMemory.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_SHAREDMEMORY_H_
21 #define OPENDAVINCI_CORE_WRAPPER_SHAREDMEMORY_H_
22 
23 #include <string>
24 
26 
27 namespace odcore {
28  namespace wrapper {
29 
30  using namespace std;
31 
38  class SharedMemory {
39  public:
40  virtual ~SharedMemory();
41 
47  virtual bool isValid() const = 0;
48 
54  virtual const string getName() const = 0;
55 
59  virtual void lock() = 0;
60 
64  virtual void unlock() = 0;
65 
72  virtual void* getSharedMemory() const = 0;
73 
79  virtual uint32_t getSize() const = 0;
80  };
81 
82  }
83 } // odcore::wrapper
84 
85 #endif /*OPENDAVINCI_CORE_WRAPPER_SHAREDMEMORY_H_*/
Definition: SharedMemory.h:38