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

Type-map entry: one registered message type 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

Type-map entry: one registered message type name/id.

Legacy type-map entry.

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

Definition at line 68 of file DataMapsMemory.h.

Member Function Documentation

◆ GetOuterXMLName()

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

Definition at line 76 of file DataMapsMemory.h.

◆ toXML()

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

Definition at line 73 of file DataMapsMemory.h.

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

◆ writeIDToMsg()

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

Definition at line 85 of file DataMapsMemory.h.

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

◆ writeToMsg()

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

Member Data Documentation

◆ id

uint16 cmlabs::TypeMapEntry::id

Definition at line 69 of file DataMapsMemory.h.

◆ key

uint32 cmlabs::TypeMapEntry::key

Definition at line 62 of file MemoryMaps.h.

◆ name

char cmlabs::TypeMapEntry::name

◆ status

uint8 cmlabs::TypeMapEntry::status

Definition at line 70 of file DataMapsMemory.h.

Referenced by toXML(), and writeToMsg().

◆ time

uint64 cmlabs::TypeMapEntry::time

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