OpenDaVINCI  4.15.3
POSIXSharedMemoryFactoryWorker.h
Go to the documentation of this file.
1 
20 #ifndef OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXSHAREDMEMORYFACTORY_H_
21 #define OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXSHAREDMEMORYFACTORY_H_
22 
24 
27 
28 namespace odcore {
29  namespace wrapper {
30 
31  using namespace std;
32 
34  public:
35  static std::shared_ptr<SharedMemory> createSharedMemory(const string &name, const uint32_t &size) {
36  return std::shared_ptr<SharedMemory>(new POSIX::POSIXSharedMemory(name, size));
37  };
38 
39  static std::shared_ptr<SharedMemory> attachToSharedMemory(const string &name) {
40  return std::shared_ptr<SharedMemory>(new POSIX::POSIXSharedMemory(name));
41  };
42  };
43 
44  }
45 } // odcore::wrapper::POSIX
46 
47 #endif /*OPENDAVINCI_CORE_WRAPPER_POSIX_POSIXSHAREDMEMORYFACTORY_H_*/
#define OPENDAVINCI_API
Definition: opendavinci.h:67
static std::shared_ptr< SharedMemory > createSharedMemory(const string &name, const uint32_t &size)
Definition: POSIXSharedMemoryFactoryWorker.h:35
Definition: POSIXSharedMemory.h:43
Definition: POSIXSharedMemory.h:30
static std::shared_ptr< SharedMemory > attachToSharedMemory(const string &name)
Definition: POSIXSharedMemoryFactoryWorker.h:39
Definition: SystemLibraryProducts.h:28