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

Public Member Functions

 DataMapsMemory (MasterMemory *master)
 
bool open ()
 
bool create (uint32 typesMaxCount, uint32 contextsMaxCount, uint32 tagsMaxCount, uint32 cranksMaxCount, uint32 requestsMaxCount)
 
bool getMemoryUsage (uint64 &alloc, uint64 &usage)
 
bool maintenance ()
 
std::string printFriendlyHTML ()
 
std::string toXML ()
 
bool writeIDsToMsg (DataMessage *msg)
 
bool writeTypeLevelsToMsg (DataMessage *msg)
 
bool confirmTypeLevelID (uint16 id)
 
bool cancelTypeLevelID (uint16 id)
 
bool createNewTypeLevel (uint16 id, const char *name, uint64 time, uint16 &existingID)
 
bool syncTypeLevels (DataMessage *msg)
 
bool getTypeLevelName (uint16 id, char *name, uint32 maxSize)
 
bool getTypeLevelID (const char *name, uint16 &id)
 
uint8 lookupTypeLevelID (const char *name, uint16 &id)
 
bool deleteTypeLevel (const char *name)
 
bool deleteTypeLevel (uint16 id)
 
uint64 getTypeLevelCreateTime (uint16 id)
 
std::string printAllTypes ()
 
bool writeContextLevelsToMsg (DataMessage *msg)
 
bool confirmContextLevelID (uint16 id)
 
bool cancelContextLevelID (uint16 id)
 
bool createNewContextLevel (uint16 id, const char *name, uint64 time, uint16 &existingID)
 
bool syncContextLevels (DataMessage *msg)
 
bool getContextLevelName (uint16 id, char *name, uint32 maxSize)
 
bool getContextLevelID (const char *name, uint16 &id)
 
uint8 lookupContextLevelID (const char *name, uint16 &id)
 
bool deleteContextLevel (const char *name)
 
bool deleteContextLevel (uint16 id)
 
uint64 getContextLevelCreateTime (uint16 id)
 
std::string printAllContexts ()
 
bool writeTagsToMsg (DataMessage *msg)
 
bool confirmTagID (uint32 id)
 
bool cancelTagID (uint32 id)
 
bool createNewTag (uint32 id, const char *name, uint64 time, uint32 &existingID)
 
bool syncTags (DataMessage *msg)
 
bool getTagName (uint32 id, char *name, uint32 maxSize)
 
bool getTagID (const char *name, uint32 &id)
 
uint8 lookupTagID (const char *name, uint32 &id)
 
bool deleteTag (const char *name)
 
bool deleteTag (uint32 id)
 
uint64 getTagCreateTime (uint32 id)
 
bool writeCranksToMsg (DataMessage *msg)
 
bool confirmCrankID (uint16 id)
 
bool cancelCrankID (uint16 id)
 
bool createNewCrank (uint16 id, uint32 compID, const char *name, const char *function, const char *libraryFilename, const char *language, const char *script, uint64 time, uint16 &existingID)
 
bool syncCranks (DataMessage *msg)
 
bool getCrankName (uint16 id, char *name, uint32 maxSize)
 
bool getCrankFunction (uint16 id, char *function, uint32 maxSize)
 
bool getCrankLanguage (uint16 id, char *language, uint32 maxSize)
 
bool getCrankLibraryFilename (uint16 id, char *libraryFilename, uint32 maxSize)
 
bool getCrankID (const char *name, uint16 &id)
 
uint8 lookupCrankID (const char *name, uint16 &id)
 
uint32 getCrankCompID (uint16 id)
 
bool getCrankScript (uint16 id, char *script, uint32 maxSize)
 
bool deleteCrank (uint16 id)
 
bool deleteCrank (const char *name)
 
uint64 getCrankCreateTime (uint16 id)
 
bool createNewRequest (uint32 from, uint32 to, uint32 remoteID, uint32 &id)
 
bool getRequestInfo (uint32 id, uint32 &from, uint32 &to, uint32 &remoteID)
 
bool getRequestStatus (uint32 id, uint8 &status, uint64 &time, uint64 &msgID, uint64 &msgEOL)
 
bool setRequestStatus (uint32 id, uint8 status)
 
bool setRequestStatus (uint32 id, uint8 status, uint64 msgID, uint64 msgEOL)
 
bool waitForRequestReply (uint32 id, uint32 timeout, uint8 &status, uint64 &time, uint64 &msgID, uint64 &msgEOL)
 
bool deleteRequest (uint32 id)
 
uint32 getRequestCount ()
 

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