CMSDK  2.0.1
Public Member Functions | Static Public Member Functions | List of all members
cmlabs::ComponentData Class Reference

Public Member Functions

 ComponentData (char *data)
 
bool disconnect ()
 
bool destroyComponent ()
 
bool resize (uint32 increase)
 
uint32 getAvailableDataSize ()
 
bool setPrivateData (const char *name, const char *data, uint32 size)
 
uint32 getPrivateDataSize (const char *name)
 
bool getPrivateDataCopy (const char *name, char *data, uint32 maxSize)
 
bool replacePrivateData (const char *name, const char *data, uint32 size)
 
bool replacePrivateData (const char *name, const char *data, uint32 size, uint32 offset)
 
bool deletePrivateData (const char *name)
 
bool createParameter (const char *name, const char *val, const char *defaultValue=NULL)
 
bool createParameter (const char *name, const char *val, uint32 count, uint32 defaultIndex)
 
bool createParameter (const char *name, std::vector< std::string > values, const char *defaultValue=NULL)
 
bool createParameter (const char *name, int64 *val, uint32 count, uint32 defaultIndex)
 
bool createParameter (const char *name, std::vector< std::string > values, int64 defaultValue=0)
 
bool createParameter (const char *name, float64 *val, uint32 count, uint32 defaultIndex)
 
bool createParameter (const char *name, std::vector< std::string > values, float64 defaultValue=0)
 
bool createParameter (const char *name, int64 val, int64 min=0, int64 max=0, int64 interval=0)
 
bool createParameter (const char *name, float64 val, float64 min=0, float64 max=0, float64 interval=0)
 
bool hasParameter (const char *name)
 
bool deleteParameter (const char *name)
 
uint8 getParameterDataType (const char *name)
 
uint32 getParameterValueSize (const char *name)
 
bool getParameter (const char *name, char *val, uint32 maxSize)
 
bool getParameter (const char *name, int64 &val)
 
bool getParameter (const char *name, float64 &val)
 
bool setParameter (const char *name, const char *val)
 
bool setParameter (const char *name, int64 val)
 
bool setParameter (const char *name, float64 val)
 
bool resetParameter (const char *name)
 
bool tweakParameter (const char *name, int32 tweak)
 

Static Public Member Functions

static bool UnitTest ()
 
static ComponentDataCreateComponent (uint32 id, const char *name, uint32 size, uint16 nodeID, uint16 procID)
 
static bool RecordRemoteComponent (uint32 id, const char *name, uint16 nodeID, uint64 time)
 
static bool ReserveComponentID (uint32 id, const char *name)
 
static bool DestroyComponent (uint32 cid)
 
static ComponentDataGetComponentData (uint32 cid)
 
static bool GetComponentName (uint32 cid, char *name, uint32 maxNameLen)
 
static bool GetComponentID (const char *name, uint32 &cid)
 
static ComponentStats GetComponentStats (uint32 cid)
 
static bool SetComponentStats (uint32 cid, ComponentStats &stats)
 
static bool IsComponentLocal (uint32 cid)
 
static bool IsComponentLocal (const char *name)
 
static uint16 GetComponentNodeID (uint32 cid)
 
static uint16 GetComponentProcessID (uint32 cid)
 
static char * GetAndRemoveComponent (uint32 cid, uint32 &dataSize)
 
static bool AddExistingComponent (uint32 cid, uint16 nodeID, uint16 procID, char *oldData, uint32 dataSize)
 
static bool UpdateRemoteComponent (uint32 cid, uint16 nodeID, uint16 procID, const char *name)
 
static bool AddComponentStats (uint32 cid, uint64 userCPU, uint64 kernelCPU, DataMessage *inputMsg, DataMessage *outputMsg, uint32 runCount)
 

The documentation for this class was generated from the following files: