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

Fixed-buffer (1023 chars + NUL) string observation; comparisons are case-insensitive lexicographic. More...

#include <Observations.h>

Public Member Functions

uint32 getType ()
void init ()
std::string print ()
std::string toJSON ()
bool extractRangeFrom (DataMessage *msg)
bool extractRangeTo (DataMessage *msg)
bool isBetween (ObsString &a, ObsString &b)
bool extractDataFromMessage (DataMessage *msg, std::map< std::string, std::string > &mappings)

Static Public Member Functions

static std::string getTypeName ()

Public Attributes

char val [1024]

Detailed Description

Fixed-buffer (1023 chars + NUL) string observation; comparisons are case-insensitive lexicographic.

Definition at line 295 of file Observations.h.

Member Function Documentation

◆ extractDataFromMessage()

bool cmlabs::ObsString::extractDataFromMessage ( DataMessage * msg,
std::map< std::string, std::string > & mappings )
inline

◆ extractRangeFrom()

bool cmlabs::ObsString::extractRangeFrom ( DataMessage * msg)
inline

◆ extractRangeTo()

bool cmlabs::ObsString::extractRangeTo ( DataMessage * msg)
inline

◆ getType()

uint32 cmlabs::ObsString::getType ( )
inline

Definition at line 297 of file Observations.h.

References OBSID_STRING.

◆ getTypeName()

std::string cmlabs::ObsString::getTypeName ( )
inlinestatic

Definition at line 298 of file Observations.h.

◆ init()

void cmlabs::ObsString::init ( )
inline

Definition at line 299 of file Observations.h.

◆ isBetween()

bool cmlabs::ObsString::isBetween ( ObsString & a,
ObsString & b )
inline

Definition at line 317 of file Observations.h.

References stricmp, and val.

◆ print()

std::string cmlabs::ObsString::print ( )
inline

Definition at line 300 of file Observations.h.

References cmlabs::utils::StringFormat(), and val.

◆ toJSON()

std::string cmlabs::ObsString::toJSON ( )
inline

Definition at line 301 of file Observations.h.

References cmlabs::utils::StringFormat(), and val.

Member Data Documentation

◆ val

char cmlabs::ObsString::val[1024]

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