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

Timestamp observation (ms epoch). 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 (ObsTime &a, ObsTime &b)
bool extractDataFromMessage (DataMessage *msg, std::map< std::string, std::string > &mappings)

Static Public Member Functions

static std::string getTypeName ()

Public Attributes

uint64 val

Detailed Description

Timestamp observation (ms epoch).

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

Definition at line 263 of file Observations.h.

Member Function Documentation

◆ extractDataFromMessage()

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

Definition at line 286 of file Observations.h.

References cmlabs::ExtractTimeFromMessage(), and val.

◆ extractRangeFrom()

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

Definition at line 270 of file Observations.h.

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

◆ extractRangeTo()

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

Definition at line 275 of file Observations.h.

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

◆ getType()

uint32 cmlabs::ObsTime::getType ( )
inline

Definition at line 265 of file Observations.h.

References OBSID_TIME.

◆ getTypeName()

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

Definition at line 266 of file Observations.h.

◆ init()

void cmlabs::ObsTime::init ( )
inline

Definition at line 267 of file Observations.h.

◆ isBetween()

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

Definition at line 280 of file Observations.h.

References val.

◆ print()

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

Definition at line 268 of file Observations.h.

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

◆ toJSON()

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

Definition at line 269 of file Observations.h.

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

Member Data Documentation

◆ val

uint64 cmlabs::ObsTime::val

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