12 #ifndef _UGCS_VSM_SHARED_MEMORY_H_
13 #define _UGCS_VSM_SHARED_MEMORY_H_
81 Open(
const std::string& name,
const size_t size) = 0;
104 Delete(
const std::string& name);
Platform independent implementation of system-wide named shared memory used for interprocess communic...
Definition: shared_memory.h:48
Shared_memory()
Constructor should not be called explicitly.
Definition: shared_memory.h:63
virtual void * Get()
Returns the pointer to shared memory.
Definition: shared_memory.h:94
std::shared_ptr< Shared_memory > Ptr
Pointer type.
Definition: shared_memory.h:50
Various common utilities.
virtual Open_result Open(const std::string &name, const size_t size)=0
Open/create shared memory.
static Ptr Create()
Creates Platform specific class instance.
static bool Delete(const std::string &name)
Deletes the named memory.
Open_result
Possible return codes from Open() call.
Definition: shared_memory.h:53
#define DEFINE_COMMON_CLASS(__class_name,...)
Use this macro to define some common attributes for a class.
Definition: utils.h:25
void * memory
pointer to shared memory
Definition: shared_memory.h:117
virtual void Close()=0
Closes previously opened memory.