CMSDK 2.0.1
Cross-platform C++ base library and SDK for the Psyclone AIOS platform
Loading...
Searching...
No Matches
Observations.cpp File Reference
#include "Observations.h"
#include "PsyTime.h"
#include "UnitTestFramework.h"
Include dependency graph for Observations.cpp:

Go to the source code of this file.

Namespaces

namespace  cmlabs

Functions

bool cmlabs::ObservationTest ()
uint32 cmlabs::GetObsTypeFromRawData (const char *data, uint32 size)
 Inspect a raw observation blob and return its OBSID_* type tag from the embedded ObsHeader.
int64 cmlabs::ExtractIntFromMessage (const char *name, DataMessage *msg, std::map< std::string, std::string > &mappings, bool &ok)
 Read an integer field from a message, translating name through mappings first.
float64 cmlabs::ExtractFloatFromMessage (const char *name, DataMessage *msg, std::map< std::string, std::string > &mappings, bool &ok)
 Float variant of ExtractIntFromMessage(); same mapping semantics.
uint64 cmlabs::ExtractTimeFromMessage (const char *name, DataMessage *msg, std::map< std::string, std::string > &mappings, bool &ok)
 Timestamp variant of ExtractIntFromMessage(); same mapping semantics.
std::string cmlabs::ExtractStringFromMessage (const char *name, DataMessage *msg, std::map< std::string, std::string > &mappings, bool &ok)
 String variant of ExtractIntFromMessage(); same mapping semantics.
bool cmlabs::Observations_UnitTest ()
 Unit test for the Observations module.
void cmlabs::Register_Observations_Tests ()
 Register the Observations tests with the unit test framework.