CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
cmlabs::ContextMapEntry Struct Reference

Context-map entry: one registered psychological/system context name/id. More...

#include <DataMapsMemory.h>

Public Member Functions

std::string toXML ()
bool writeToMsg (uint32 n, DataMessage *msg)
bool writeIDToMsg (const char *arrayname, uint32 n, DataMessage *msg)

Static Public Member Functions

static std::string GetOuterXMLName ()

Public Attributes

uint16 id
uint8 status
uint64 time
char name [MAXKEYNAMELEN+1]
uint32 key

Detailed Description

Context-map entry: one registered psychological/system context name/id.

Legacy context-map entry.

Warning
Shared-memory layout; see MemoryManager.h for the ABI/rebuild warning.
Shared-memory layout.

Definition at line 94 of file DataMapsMemory.h.

Member Function Documentation

◆ GetOuterXMLName()

std::string cmlabs::ContextMapEntry::GetOuterXMLName ( )
inlinestatic

Definition at line 102 of file DataMapsMemory.h.

◆ toXML()

std::string cmlabs::ContextMapEntry::toXML ( )
inline

Definition at line 99 of file DataMapsMemory.h.

References name, status, cmlabs::utils::StringFormat(), and time.

◆ writeIDToMsg()

bool cmlabs::ContextMapEntry::writeIDToMsg ( const char * arrayname,
uint32 n,
DataMessage * msg )
inline

Definition at line 111 of file DataMapsMemory.h.

References name, and cmlabs::DataMessage::setString().

◆ writeToMsg()

bool cmlabs::ContextMapEntry::writeToMsg ( uint32 n,
DataMessage * msg )
inline

Member Data Documentation

◆ id

uint16 cmlabs::ContextMapEntry::id

Definition at line 95 of file DataMapsMemory.h.

◆ key

uint32 cmlabs::ContextMapEntry::key

Definition at line 79 of file MemoryMaps.h.

◆ name

char cmlabs::ContextMapEntry::name

Definition at line 98 of file DataMapsMemory.h.

Referenced by toXML(), writeIDToMsg(), and writeToMsg().

◆ status

uint8 cmlabs::ContextMapEntry::status

Definition at line 96 of file DataMapsMemory.h.

Referenced by toXML(), and writeToMsg().

◆ time

uint64 cmlabs::ContextMapEntry::time

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