Geophysical Inversion and Modeling Library  v1.0.12-20-g65e71e67
GIMLI::IPCClientSHM Class Reference

Inter process communication via shared memory. More...

Public Types

enum  TypeID { BOOL, INT, DOUBLE, ARRAY }
 

Public Member Functions

 IPCClientSHM (bool verbose=false)
 
void setSegmentName (const std::string &segmentName)
 
template<class ValueType >
void set (const std::string &name, ValueType val, TypeID type)
 
template<class ValueType >
ValueType get (const std::string &name)
 
void setBool (const std::string &name, bool val)
 
bool getBool (const std::string &name)
 
void setInt (const std::string &name, int val)
 
int getInt (const std::string &name)
 
void setDouble (const std::string &name, double val)
 
double getDouble (const std::string &name)
 
void info ()
 
void enlarge ()
 

Static Public Member Functions

static void free (const std::string &name)
 

Protected Attributes

bool verbose_
 
bool initialized_
 
std::string name_
 

Detailed Description

Inter process communication via shared memory.

Inter process communication via shared memory. For sample usage see: unittest/testGIMLiMisc.h:testIPCSHM()