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

Extent observation (w,h,d). 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 (ObsDimension &a, ObsDimension &b)
bool extractDataFromMessage (DataMessage *msg, std::map< std::string, std::string > &mappings)

Static Public Member Functions

static std::string getTypeName ()

Public Attributes

float64 w
float64 h
float64 d

Detailed Description

Extent observation (w,h,d).

isBetween() compares by area/volume rather than per-component.

Definition at line 140 of file Observations.h.

Member Function Documentation

◆ extractDataFromMessage()

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

Definition at line 185 of file Observations.h.

References d, cmlabs::ExtractFloatFromMessage(), h, and w.

◆ extractRangeFrom()

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

Definition at line 147 of file Observations.h.

References d, cmlabs::DataMessage::getFloat(), h, and w.

◆ extractRangeTo()

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

Definition at line 154 of file Observations.h.

References d, cmlabs::DataMessage::getFloat(), h, and w.

◆ getType()

uint32 cmlabs::ObsDimension::getType ( )
inline

Definition at line 142 of file Observations.h.

References OBSID_DIM.

◆ getTypeName()

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

Definition at line 143 of file Observations.h.

◆ init()

void cmlabs::ObsDimension::init ( )
inline

Definition at line 144 of file Observations.h.

◆ isBetween()

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

Definition at line 161 of file Observations.h.

References d, h, and w.

◆ print()

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

Definition at line 145 of file Observations.h.

References d, h, cmlabs::utils::StringFormat(), and w.

◆ toJSON()

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

Definition at line 146 of file Observations.h.

References d, h, cmlabs::utils::StringFormat(), and w.

Member Data Documentation

◆ d

float64 cmlabs::ObsDimension::d

◆ h

float64 cmlabs::ObsDimension::h

◆ w

float64 cmlabs::ObsDimension::w

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