OpenDaVINCI  4.16.0
odcore::wrapper::SharedMemoryFactoryWorker< product > Class Template Reference

#include <POSIXSharedMemory.h>

Static Public Member Functions

static std::shared_ptr
< SharedMemory
createSharedMemory (const string &name, const uint32_t &size)
 
static std::shared_ptr
< SharedMemory
attachToSharedMemory (const string &name)
 

Detailed Description

template<odcore::wrapper::SystemLibraryProducts product>
class odcore::wrapper::SharedMemoryFactoryWorker< product >

This template class provides factory methods to the SharedMemoryFactory. The factory methods' implementations for different products have to be defined in specializations of the SharedMemoryFactoryWorker template class.

SharedMemoryFactory, SharedMemoryFactoryWorker, SystemLibraryProducts, WIN32SharedMemoryFactoryWorker, POSIXSharedMemoryFactoryWorker

Member Function Documentation

template<odcore::wrapper::SystemLibraryProducts product>
static std::shared_ptr<SharedMemory> odcore::wrapper::SharedMemoryFactoryWorker< product >::attachToSharedMemory ( const string &  name)
static

This method returns the shared memory.

Parameters
nameName of the shared memory to attach.
Returns
Shared memory based on the type of instance this factory is.

Referenced by odcore::wrapper::SharedMemoryFactory::attachToSharedMemory().

template<odcore::wrapper::SystemLibraryProducts product>
static std::shared_ptr<SharedMemory> odcore::wrapper::SharedMemoryFactoryWorker< product >::createSharedMemory ( const string &  name,
const uint32_t &  size 
)
static

This method returns the shared memory.

Parameters
nameName of the shared memory to create.
sizeRequired size for the new shared memory.
Returns
Shared memory based on the type of instance this factory is.

Referenced by odcore::wrapper::SharedMemoryFactory::createSharedMemory().