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

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

Static Public Member Functions

static std::string getTypeName ()

Public Attributes

float64 val

Detailed Description

Scalar float observation.

Note
isBetween() has the same inverted semantics as ObsInteger.

Definition at line 231 of file Observations.h.

Member Function Documentation

◆ extractDataFromMessage()

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

Definition at line 254 of file Observations.h.

References cmlabs::ExtractFloatFromMessage(), and val.

◆ extractRangeFrom()

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

Definition at line 238 of file Observations.h.

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

◆ extractRangeTo()

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

Definition at line 243 of file Observations.h.

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

◆ getType()

uint32 cmlabs::ObsFloat::getType ( )
inline

Definition at line 233 of file Observations.h.

References OBSID_FLOAT.

◆ getTypeName()

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

Definition at line 234 of file Observations.h.

◆ init()

void cmlabs::ObsFloat::init ( )
inline

Definition at line 235 of file Observations.h.

◆ isBetween()

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

Definition at line 248 of file Observations.h.

References val.

◆ print()

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

Definition at line 236 of file Observations.h.

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

◆ toJSON()

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

Definition at line 237 of file Observations.h.

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

Member Data Documentation

◆ val

float64 cmlabs::ObsFloat::val

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