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

Scalar integer observation. 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 (ObsInteger &a, ObsInteger &b)
bool extractDataFromMessage (DataMessage *msg, std::map< std::string, std::string > &mappings)

Static Public Member Functions

static std::string getTypeName ()

Public Attributes

int64 val

Detailed Description

Scalar integer observation.

Note
isBetween() returns true when the value is OUTSIDE [a,b] — inverted relative to ObsLocation/ObsDimension (see code smell notes).

Definition at line 199 of file Observations.h.

Member Function Documentation

◆ extractDataFromMessage()

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

Definition at line 222 of file Observations.h.

References cmlabs::ExtractIntFromMessage(), and val.

◆ extractRangeFrom()

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

Definition at line 206 of file Observations.h.

References cmlabs::DataMessage::getInt(), and val.

◆ extractRangeTo()

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

Definition at line 211 of file Observations.h.

References cmlabs::DataMessage::getInt(), and val.

◆ getType()

uint32 cmlabs::ObsInteger::getType ( )
inline

Definition at line 201 of file Observations.h.

References OBSID_INT.

◆ getTypeName()

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

Definition at line 202 of file Observations.h.

◆ init()

void cmlabs::ObsInteger::init ( )
inline

Definition at line 203 of file Observations.h.

◆ isBetween()

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

Definition at line 216 of file Observations.h.

References val.

◆ print()

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

Definition at line 204 of file Observations.h.

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

◆ toJSON()

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

Definition at line 205 of file Observations.h.

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

Member Data Documentation

◆ val

int64 cmlabs::ObsInteger::val

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