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