|
CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
|
Accessor for the shared name/id maps and the request map. More...
#include <DataMapsMemory.h>
Public Member Functions | |
| DataMapsMemory (MasterMemory *master) | |
| ~DataMapsMemory () | |
| bool | open () |
| Attach to the existing data-maps segment. | |
| bool | create (uint32 typesMaxCount, uint32 contextsMaxCount, uint32 tagsMaxCount, uint32 cranksMaxCount, uint32 requestsMaxCount) |
| Create the segment (master only) with the given per-map capacities. | |
| bool | getMemoryUsage (uint64 &alloc, uint64 &usage) |
| Report allocation/usage. | |
| bool | maintenance () |
| Periodic cleanup (e.g. | |
| std::string | printFriendlyHTML () |
| std::string | toXML () |
| bool | writeIDsToMsg (DataMessage *msg) |
| Write all map names/ids into msg for cluster sync. | |
Type-level map (message type names ↔ uint16 ids) | |
Two-phase creation: createNewTypeLevel() reserves, confirm/cancel commits or rolls back; lookup* returns the sync status (0 absent, 1 in-sync, 2 ready). | |
| 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 () |
Context-level map (context names ↔ uint16 ids); same two-phase pattern as types. | |
| 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 () |
Tag map (tag names ↔ uint32 ids); same two-phase pattern as types. | |
| 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) |
Crank map (crank callbacks/scripts ↔ uint16 ids); same two-phase pattern, with | |
extra fields for function, library filename, language and inline script. | |
| 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) |
Request map (cross-component request/reply tracking) | |
createNewRequest() allocates a transaction id; setRequestStatus() advances it through the REQ_* lifecycle (optionally attaching the temporal-memory id of the reply); waitForRequestReply() blocks the caller up to timeout ms until a terminal status. | |
| 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 () |
Accessor for the shared name/id maps and the request map.
One instance per process (created by MemoryManager); master calls create(), others open(). All calls lock the segment's named cross-process mutex and re-attach when the segment was resized (serial check). The confirm/cancel method pairs implement two-phase, cluster-wide id allocation; sync* methods merge entries received from remote nodes.
Definition at line 245 of file DataMapsMemory.h.
| cmlabs::DataMapsMemory::DataMapsMemory | ( | MasterMemory * | master | ) |
| master | Segment bookkeeping interface (borrowed, not owned). |
Definition at line 9 of file DataMapsMemory.cpp.
| cmlabs::DataMapsMemory::~DataMapsMemory | ( | ) |
Definition at line 24 of file DataMapsMemory.cpp.
References cmlabs::utils::CloseSharedMemorySegment().
| bool cmlabs::DataMapsMemory::cancelContextLevelID | ( | uint16 | id | ) |
Definition at line 640 of file DataMapsMemory.cpp.
References cmlabs::GenericMemoryMap< T, ID >::CancelEntry(), and CHECKDATAMAPSMEMORYSERIAL.
| bool cmlabs::DataMapsMemory::cancelCrankID | ( | uint16 | id | ) |
Definition at line 923 of file DataMapsMemory.cpp.
References cmlabs::GenericMemoryMap< T, ID >::CancelEntry(), and CHECKDATAMAPSMEMORYSERIAL.
| bool cmlabs::DataMapsMemory::cancelTagID | ( | uint32 | id | ) |
Definition at line 784 of file DataMapsMemory.cpp.
References cmlabs::GenericMemoryMap< T, ID >::CancelEntry(), and CHECKDATAMAPSMEMORYSERIAL.
| bool cmlabs::DataMapsMemory::cancelTypeLevelID | ( | uint16 | id | ) |
Definition at line 366 of file DataMapsMemory.cpp.
References cmlabs::GenericMemoryMap< T, ID >::CancelEntry(), and CHECKDATAMAPSMEMORYSERIAL.
| bool cmlabs::DataMapsMemory::confirmContextLevelID | ( | uint16 | id | ) |
Definition at line 631 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::ConfirmEntry().
Referenced by syncContextLevels().
| bool cmlabs::DataMapsMemory::confirmCrankID | ( | uint16 | id | ) |
Definition at line 914 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::ConfirmEntry().
Referenced by syncCranks().
| bool cmlabs::DataMapsMemory::confirmTagID | ( | uint32 | id | ) |
Definition at line 775 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::ConfirmEntry().
Referenced by syncTags(), and cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::confirmTypeLevelID | ( | uint16 | id | ) |
Definition at line 357 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::ConfirmEntry().
Referenced by syncTypeLevels(), and cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::create | ( | uint32 | typesMaxCount, |
| uint32 | contextsMaxCount, | ||
| uint32 | tagsMaxCount, | ||
| uint32 | cranksMaxCount, | ||
| uint32 | requestsMaxCount ) |
Create the segment (master only) with the given per-map capacities.
Definition at line 62 of file DataMapsMemory.cpp.
| bool cmlabs::DataMapsMemory::createNewContextLevel | ( | uint16 | id, |
| const char * | name, | ||
| uint64 | time, | ||
| uint16 & | existingID ) |
Definition at line 649 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::CreateEntry(), cmlabs::GenericMemoryMap< T, ID >::GetEntryID(), and cmlabs::ContextMapEntry::time.
Referenced by syncContextLevels().
| bool cmlabs::DataMapsMemory::createNewCrank | ( | uint16 | id, |
| uint32 | compID, | ||
| const char * | name, | ||
| const char * | function, | ||
| const char * | libraryFilename, | ||
| const char * | language, | ||
| const char * | script, | ||
| uint64 | time, | ||
| uint16 & | existingID ) |
Definition at line 932 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::CrankMapEntry::compID, cmlabs::GenericMemoryMap< T, ID >::CreateEntry(), cmlabs::CrankMapEntry::function, cmlabs::GenericMemoryMap< T, ID >::GetEntryID(), cmlabs::CrankMapEntry::language, cmlabs::CrankMapEntry::libraryFilename, MAXKEYNAMELEN, MAXSCRIPTLEN, cmlabs::CrankMapEntry::script, cmlabs::utils::strcpyavail(), and cmlabs::CrankMapEntry::time.
Referenced by syncCranks().
| bool cmlabs::DataMapsMemory::createNewRequest | ( | uint32 | from, |
| uint32 | to, | ||
| uint32 | remoteID, | ||
| uint32 & | id ) |
Definition at line 1137 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::CreateFirstFreeEntry(), cmlabs::GetTimeNow(), LOG_MEMORY, LogPrint, maintenance(), MAXKEYNAMELEN, and REQ_CREATED.
| bool cmlabs::DataMapsMemory::createNewTag | ( | uint32 | id, |
| const char * | name, | ||
| uint64 | time, | ||
| uint32 & | existingID ) |
Definition at line 793 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::CreateEntry(), cmlabs::GenericMemoryMap< T, ID >::GetEntryID(), and cmlabs::TagMapEntry::time.
Referenced by syncTags(), and cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::createNewTypeLevel | ( | uint16 | id, |
| const char * | name, | ||
| uint64 | time, | ||
| uint16 & | existingID ) |
Definition at line 492 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::CreateEntry(), cmlabs::GenericMemoryMap< T, ID >::GetEntry(), cmlabs::GenericMemoryMap< T, ID >::GetEntryID(), cmlabs::TypeMapEntry::name, and cmlabs::TypeMapEntry::time.
Referenced by syncTypeLevels(), and cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::deleteContextLevel | ( | const char * | name | ) |
Definition at line 718 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::DeleteEntry(), and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::deleteContextLevel | ( | uint16 | id | ) |
Definition at line 734 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().
| bool cmlabs::DataMapsMemory::deleteCrank | ( | const char * | name | ) |
Definition at line 1088 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::DeleteEntry(), and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::deleteCrank | ( | uint16 | id | ) |
Definition at line 1104 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().
| bool cmlabs::DataMapsMemory::deleteRequest | ( | uint32 | id | ) |
Definition at line 1287 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::DeleteEntry(), LOG_MEMORY, and LogPrint.
| bool cmlabs::DataMapsMemory::deleteTag | ( | const char * | name | ) |
Definition at line 864 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::DeleteEntry(), and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::deleteTag | ( | uint32 | id | ) |
Definition at line 880 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().
| bool cmlabs::DataMapsMemory::deleteTypeLevel | ( | const char * | name | ) |
Definition at line 574 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::DeleteEntry(), and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::deleteTypeLevel | ( | uint16 | id | ) |
Definition at line 590 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::DeleteEntry().
| uint64 cmlabs::DataMapsMemory::getContextLevelCreateTime | ( | uint16 | id | ) |
Definition at line 749 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryTime().
| bool cmlabs::DataMapsMemory::getContextLevelID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 694 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::getContextLevelName | ( | uint16 | id, |
| char * | name, | ||
| uint32 | maxSize ) |
Definition at line 679 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryName().
| uint32 cmlabs::DataMapsMemory::getCrankCompID | ( | uint16 | id | ) |
Definition at line 1072 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntry().
| uint64 cmlabs::DataMapsMemory::getCrankCreateTime | ( | uint16 | id | ) |
Definition at line 1119 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryTime().
| bool cmlabs::DataMapsMemory::getCrankFunction | ( | uint16 | id, |
| char * | function, | ||
| uint32 | maxSize ) |
Definition at line 966 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), and cmlabs::utils::strcpyavail().
| bool cmlabs::DataMapsMemory::getCrankID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 1048 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
| bool cmlabs::DataMapsMemory::getCrankLanguage | ( | uint16 | id, |
| char * | language, | ||
| uint32 | maxSize ) |
Definition at line 982 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), and cmlabs::utils::strcpyavail().
| bool cmlabs::DataMapsMemory::getCrankLibraryFilename | ( | uint16 | id, |
| char * | libraryFilename, | ||
| uint32 | maxSize ) |
Definition at line 999 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), and cmlabs::utils::strcpyavail().
| bool cmlabs::DataMapsMemory::getCrankName | ( | uint16 | id, |
| char * | name, | ||
| uint32 | maxSize ) |
Definition at line 1033 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryName().
| bool cmlabs::DataMapsMemory::getCrankScript | ( | uint16 | id, |
| char * | script, | ||
| uint32 | maxSize ) |
Definition at line 1016 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), and cmlabs::utils::strcpyavail().
| bool cmlabs::DataMapsMemory::getMemoryUsage | ( | uint64 & | alloc, |
| uint64 & | usage ) |
Report allocation/usage.
Definition at line 44 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL.
| uint32 cmlabs::DataMapsMemory::getRequestCount | ( | ) |
Definition at line 1302 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetCount().
| bool cmlabs::DataMapsMemory::getRequestInfo | ( | uint32 | id, |
| uint32 & | from, | ||
| uint32 & | to, | ||
| uint32 & | remoteID ) |
Definition at line 1167 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntry().
| bool cmlabs::DataMapsMemory::getRequestStatus | ( | uint32 | id, |
| uint8 & | status, | ||
| uint64 & | time, | ||
| uint64 & | msgID, | ||
| uint64 & | msgEOL ) |
Definition at line 1185 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntry().
| uint64 cmlabs::DataMapsMemory::getTagCreateTime | ( | uint32 | id | ) |
Definition at line 895 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryTime().
| bool cmlabs::DataMapsMemory::getTagID | ( | const char * | name, |
| uint32 & | id ) |
Definition at line 838 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
Referenced by cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::getTagName | ( | uint32 | id, |
| char * | name, | ||
| uint32 | maxSize ) |
Definition at line 823 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryName().
Referenced by cmlabs::ComponentMemory::UnitTest().
| uint64 cmlabs::DataMapsMemory::getTypeLevelCreateTime | ( | uint16 | id | ) |
Definition at line 605 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryTime().
| bool cmlabs::DataMapsMemory::getTypeLevelID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 548 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryID().
Referenced by cmlabs::ComponentMemory::UnitTest().
| bool cmlabs::DataMapsMemory::getTypeLevelName | ( | uint16 | id, |
| char * | name, | ||
| uint32 | maxSize ) |
Definition at line 533 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::GetEntryName().
Referenced by cmlabs::ComponentMemory::UnitTest().
| uint8 cmlabs::DataMapsMemory::lookupContextLevelID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 709 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::LookupEntryID().
| uint8 cmlabs::DataMapsMemory::lookupCrankID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 1063 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::LookupEntryID().
| uint8 cmlabs::DataMapsMemory::lookupTagID | ( | const char * | name, |
| uint32 & | id ) |
Definition at line 854 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::LookupEntryID().
| uint8 cmlabs::DataMapsMemory::lookupTypeLevelID | ( | const char * | name, |
| uint16 & | id ) |
Definition at line 564 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::LookupEntryID().
| bool cmlabs::DataMapsMemory::maintenance | ( | ) |
Periodic cleanup (e.g.
stale requests).
Definition at line 113 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL.
Referenced by createNewRequest().
| bool cmlabs::DataMapsMemory::open | ( | ) |
Attach to the existing data-maps segment.
Definition at line 67 of file DataMapsMemory.cpp.
References cmlabs::DataMapsMemoryStruct::cid, cmlabs::utils::CloseSharedMemorySegment(), DATAMAPSMEMORYID, LOG_MEMORY, LogPrint, cmlabs::utils::OpenSharedMemorySegment(), and cmlabs::utils::StringFormat().
| std::string cmlabs::DataMapsMemory::printAllContexts | ( | ) |
Definition at line 758 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::PrintAllEntries().
| std::string cmlabs::DataMapsMemory::printAllTypes | ( | ) |
Definition at line 614 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::PrintAllEntries().
| std::string cmlabs::DataMapsMemory::printFriendlyHTML | ( | ) |
Definition at line 1312 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::PrintAllEntriesHTML().
| bool cmlabs::DataMapsMemory::setRequestStatus | ( | uint32 | id, |
| uint8 | status ) |
Definition at line 1204 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), cmlabs::GetTimeNow(), and cmlabs::utils::SignalSemaphore().
| bool cmlabs::DataMapsMemory::setRequestStatus | ( | uint32 | id, |
| uint8 | status, | ||
| uint64 | msgID, | ||
| uint64 | msgEOL ) |
Definition at line 1222 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), cmlabs::GetTimeNow(), LOG_MEMORY, LogPrint, cmlabs::PrintTimeString(), and cmlabs::utils::SignalSemaphore().
| bool cmlabs::DataMapsMemory::syncContextLevels | ( | DataMessage * | msg | ) |
Definition at line 423 of file DataMapsMemory.cpp.
References confirmContextLevelID(), createNewContextLevel(), cmlabs::DataMessage::getInt(), cmlabs::DataMessage::getString(), and cmlabs::DataMessage::getTime().
| bool cmlabs::DataMapsMemory::syncCranks | ( | DataMessage * | msg | ) |
Definition at line 471 of file DataMapsMemory.cpp.
References confirmCrankID(), createNewCrank(), cmlabs::DataMessage::getInt(), cmlabs::DataMessage::getString(), and cmlabs::DataMessage::getTime().
| bool cmlabs::DataMapsMemory::syncTags | ( | DataMessage * | msg | ) |
Definition at line 447 of file DataMapsMemory.cpp.
References confirmTagID(), createNewTag(), cmlabs::DataMessage::getInt(), cmlabs::DataMessage::getString(), and cmlabs::DataMessage::getTime().
| bool cmlabs::DataMapsMemory::syncTypeLevels | ( | DataMessage * | msg | ) |
Definition at line 399 of file DataMapsMemory.cpp.
References confirmTypeLevelID(), createNewTypeLevel(), cmlabs::DataMessage::getInt(), cmlabs::DataMessage::getString(), and cmlabs::DataMessage::getTime().
| std::string cmlabs::DataMapsMemory::toXML | ( | ) |
Definition at line 1331 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::utils::StringFormat(), and cmlabs::GenericMemoryMap< T, ID >::ToXML().
| bool cmlabs::DataMapsMemory::waitForRequestReply | ( | uint32 | id, |
| uint32 | timeout, | ||
| uint8 & | status, | ||
| uint64 & | time, | ||
| uint64 & | msgID, | ||
| uint64 & | msgEOL ) |
Definition at line 1244 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, cmlabs::GenericMemoryMap< T, ID >::GetEntry(), cmlabs::GetTimeAgeMS(), cmlabs::GetTimeNow(), LOG_MEMORY, LogPrint, cmlabs::PrintTimeString(), REQ_REPLY_READY, and cmlabs::utils::WaitForSemaphore().
| bool cmlabs::DataMapsMemory::writeContextLevelsToMsg | ( | DataMessage * | msg | ) |
Definition at line 414 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::WriteAllEntriesToMsg().
| bool cmlabs::DataMapsMemory::writeCranksToMsg | ( | DataMessage * | msg | ) |
Definition at line 462 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::WriteAllEntriesToMsg().
| bool cmlabs::DataMapsMemory::writeIDsToMsg | ( | DataMessage * | msg | ) |
Write all map names/ids into msg for cluster sync.
Definition at line 375 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::WriteAllIDsToMsg().
| bool cmlabs::DataMapsMemory::writeTagsToMsg | ( | DataMessage * | msg | ) |
Definition at line 438 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::WriteAllEntriesToMsg().
| bool cmlabs::DataMapsMemory::writeTypeLevelsToMsg | ( | DataMessage * | msg | ) |
Definition at line 390 of file DataMapsMemory.cpp.
References CHECKDATAMAPSMEMORYSERIAL, and cmlabs::GenericMemoryMap< T, ID >::WriteAllEntriesToMsg().