COVISE Core
|
#include <coDistributedObject.h>
Public Member Functions | |
void | getShmLocation (int &shmSegNo, shmSizeType &offset) const |
Get my location in shared memory. More... | |
void | addAttribute (const char *, const char *) |
Attach an attribute to an object. More... | |
void | addAttributes (int, const char *const *, const char *const *) |
Attach multiple attributes to an object. More... | |
const char * | getAttribute (const char *) const |
get one attribute More... | |
int | getNumAttributes () const |
get number of attributes More... | |
int | getAllAttributes (const char ***name, const char ***content) const |
get all attributes More... | |
void | copyAllAttributes (const coDistributedObject *src) |
copy all attributes from src to this object More... | |
char * | getName () const |
get the object's name More... | |
const char * | getType () const |
get the object's type More... | |
int | isType (const char *reqType) const |
check whether this is a certain type More... | |
bool | objectOk () const |
check whether object was created or received ok More... | |
coDistributedObject () | |
coDistributedObject (const coObjInfo &info) | |
coDistributedObject (const coObjInfo &info, const char *t) | |
coDistributedObject (const coObjInfo &info, int shmSeg, shmSizeType offs, char *t) | |
virtual | ~coDistributedObject () |
coDistributedObject * | clone (const coObjInfo &newinfo) const |
void | copyObjInfo (coObjInfo *info) const |
const coDistributedObject * | createUnknown () const |
int * | store_header (int, int, int, int *, data_type *, long *, covise::DataHandle &idata) |
int | restore_header (int **, int, int *, int *, shmSizeType *) |
void | init_header (int *, int *, int, data_type **, long **) |
int | update_shared_dl (int count, covise_data_list *dl) |
int | store_shared_dl (int count, covise_data_list *dl) |
int | restore_shared_dl (int count, covise_data_list *dl) |
void | setType (const char *, const char *) |
int | getObjectInfo (coDoInfo **) const |
int | get_type_no () const |
int | access (access_type) |
int | destroy () |
char * | object_on_hosts () const |
int | incRefCount () const |
int | decRefCount () const |
int | getRefCount () const |
void | print () const |
void | getObjectFromShm () |
Common function for all read-Constructors: More... | |
bool | checkObject () const |
Check object: return true if valid, false if not. More... | |
Static Public Member Functions | |
static const coDistributedObject * | createFromShm (const coObjInfo &newinfo) |
static const coDistributedObject * | createUnknown (coShmArray *) |
static const coDistributedObject * | createUnknown (int seg, shmSizeType offs) |
static int | calcType (const char *) |
static char * | calcTypeString (int) |
static int | set_vconstr (const char *, coDistributedObject *(*)(coShmArray *)) |
Protected Member Functions | |
int | getShmArray () const |
int | createFromShm (coShmArray *arr) |
virtual int | rebuildFromShm ()=0 |
virtual int | getObjInfo (int, coDoInfo **) const |
bool | checkObj (int shmSegNo, shmSizeType shmOffs, bool &printed) const |
Check object in shared memory. More... | |
virtual coDistributedObject * | cloneObject (const coObjInfo &newinfo) const =0 |
Protected Attributes | |
coIntShm | version |
coIntShm | refcount |
coShmArray * | shmarr |
coStringShmArray * | attributes = nullptr |
coDoHeader * | header = nullptr |
char | type_name [7] |
int | type_no = 0 |
char * | name = nullptr |
int | loc_version = -1 |
bool | new_ok |
int | size = 0 |
char * | attribs = nullptr |
Static Private Attributes | |
static List< VirtualConstructor > * | vconstr_list = NULL |
static int | xfer_arrays = 1 |
Friends | |
class | ApplicationProcess |
class | coShmArrayPtr |
void | coShmPtrArray::set (int i, const class coDistributedObject *elem) |
|
inline |
|
inline |
|
inline |
|
inline |
|
virtual |
int coDistributedObject::access | ( | access_type | acc | ) |
void coDistributedObject::addAttribute | ( | const char * | attr_name, |
const char * | attr_val | ||
) |
Attach an attribute to an object.
void coDistributedObject::addAttributes | ( | int | no, |
const char *const * | attr_name, | ||
const char *const * | attr_val | ||
) |
Attach multiple attributes to an object.
|
static |
|
static |
|
protected |
Check object in shared memory.
Distributed Object types
Check DO Header
bool coDistributedObject::checkObject | ( | ) | const |
Check object: return true if valid, false if not.
coDistributedObject * coDistributedObject::clone | ( | const coObjInfo & | newinfo | ) | const |
|
protectedpure virtual |
Implemented in covise::coDoTriangleStrips, covise::coDoColormap, covise::coDoScalarData< ValueType, typenum, typetag >, covise::coDoScalarData< int, INTSHMARRAY, RGBADT >, covise::coDoRGBA, covise::coDoVec2, covise::coDoVec3, covise::coDoMat3, covise::coDoTensor, covise::coDoDoubleArr, covise::coDoGeometry, covise::coDoIntArr, covise::coDoLines, covise::coDoOctTree, covise::coDoOctTreeP, covise::coDoPixelImage, covise::coDoPoints, covise::coDoPolygons, covise::coDoTriangles, covise::coDoQuads, covise::coDoRectilinearGrid, covise::coDoSet, covise::coDoSpheres, covise::coDoStructuredGrid, covise::coDoText, covise::coDoTexture, covise::coDoUniformGrid, and covise::coDoUnstructuredGrid.
void coDistributedObject::copyAllAttributes | ( | const coDistributedObject * | src | ) |
copy all attributes from src to this object
|
static |
retrieve a data object from shm/dmgr by name/coObjInfo (replaces (new coDistributedObject(newinfo)->createUnknown())
|
inlineprotected |
const coDistributedObject * coDistributedObject::createUnknown | ( | ) | const |
|
static |
|
static |
|
inline |
int coDistributedObject::destroy | ( | ) |
|
inline |
int coDistributedObject::getAllAttributes | ( | const char *** | name, |
const char *** | content | ||
) | const |
get all attributes
const char * coDistributedObject::getAttribute | ( | const char * | attr_name | ) | const |
get one attribute
|
inline |
get the object's name
int coDistributedObject::getNumAttributes | ( | ) | const |
get number of attributes
void coDistributedObject::getObjectFromShm | ( | ) |
Common function for all read-Constructors:
Virtual function call: calls class-specific routine
int coDistributedObject::getObjectInfo | ( | coDoInfo ** | info_list | ) | const |
|
inlineprotectedvirtual |
Reimplemented in covise::coDoScalarData< ValueType, typenum, typetag >, covise::coDoScalarData< int, INTSHMARRAY, RGBADT >, covise::coDoBasisTree, covise::coDoColormap, covise::coDoVec2, covise::coDoVec3, covise::coDoMat3, covise::coDoTensor, covise::coDoDoubleArr, covise::coDoGeometry, covise::coDoIntArr, covise::coDoLines, covise::coDoPixelImage, covise::coDoPoints, covise::coDoPolygons, covise::coDoTriangles, covise::coDoQuads, covise::coDoRectilinearGrid, covise::coDoSet, covise::coDoSpheres, covise::coDoStructuredGrid, covise::coDoText, covise::coDoTexture, covise::coDoTriangleStrips, covise::coDoUniformGrid, and covise::coDoUnstructuredGrid.
|
inline |
|
protected |
void coDistributedObject::getShmLocation | ( | int & | shmSegNo, |
shmSizeType & | offset | ||
) | const |
Get my location in shared memory.
|
inline |
get the object's type
|
inline |
void coDistributedObject::init_header | ( | int * | size, |
int * | no_of_allocs, | ||
int | count, | ||
data_type ** | dt, | ||
long ** | ct | ||
) |
|
inline |
check whether this is a certain type
char * coDistributedObject::object_on_hosts | ( | ) | const |
|
inline |
check whether object was created or received ok
|
inline |
|
protectedpure virtual |
Implemented in covise::coDoBasisTree, covise::coDoColormap, covise::coDoScalarData< ValueType, typenum, typetag >, covise::coDoScalarData< int, INTSHMARRAY, RGBADT >, covise::coDoVec2, covise::coDoVec3, covise::coDoMat3, covise::coDoTensor, covise::coDoDoubleArr, covise::coDoGeometry, covise::coDoIntArr, covise::coDoLines, covise::coDoPixelImage, covise::coDoPoints, covise::coDoPolygons, covise::coDoTriangles, covise::coDoQuads, covise::coDoRectilinearGrid, covise::coDoSet, covise::coDoSpheres, covise::coDoStructuredGrid, covise::coDoText, covise::coDoTexture, covise::coDoTriangleStrips, covise::coDoUniformGrid, and covise::coDoUnstructuredGrid.
int coDistributedObject::restore_header | ( | int ** | iptr, |
int | count, | ||
int * | shmarr_count, | ||
int * | sn, | ||
shmSizeType * | of | ||
) |
int coDistributedObject::restore_shared_dl | ( | int | count, |
covise_data_list * | dl | ||
) |
if we call a c'tor without SHM array, this is not ok
|
static |
void coDistributedObject::setType | ( | const char * | tname, |
const char * | long_name | ||
) |
int * coDistributedObject::store_header | ( | int | size, |
int | no_of_allocs, | ||
int | count, | ||
int * | shmarr_count, | ||
data_type * | dt, | ||
long * | ct, | ||
covise::DataHandle & | idata | ||
) |
int coDistributedObject::store_shared_dl | ( | int | count, |
covise_data_list * | dl | ||
) |
int coDistributedObject::update_shared_dl | ( | int | count, |
covise_data_list * | dl | ||
) |
|
friend |
|
friend |
|
friend |
|
mutableprotected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
mutableprotected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
staticprivate |
|
protected |
|
staticprivate |