nidas v1.2.3
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Problem Class Reference

Problem is any issue detected in the data and statistics, distinguished by a kind id and a stream id, and an optionally including any related values. More...

Public Member Functions

 Problem (const std::string &kind, const std::string &streamid)
 
Json::Value json_value ()
 
std::string printout ()
 Return a one-line string enumerating this problem.
 

Static Public Member Functions

static Json::Value asJsonArray (std::vector< Problem > &problems)
 

Public Attributes

std::string kind
 
std::string streamid
 
Json::Value values {Json::objectValue}
 

Static Public Attributes

static const std::string SAMPLE_RATE_MISMATCH { "sample-rate-mismatch" }
 
static const std::string MISSING_VALUES { "missing-values" }
 
static const std::string NO_SAMPLES { "no-samples" }
 

Detailed Description

Problem is any issue detected in the data and statistics, distinguished by a kind id and a stream id, and an optionally including any related values.

{ "problem-class": "sample-rate-mismatch", "streamid": stream-id }

Constructor & Destructor Documentation

◆ Problem()

Problem::Problem ( const std::string & kind,
const std::string & streamid )
inline

Member Function Documentation

◆ asJsonArray()

static Json::Value Problem::asJsonArray ( std::vector< Problem > & problems)
inlinestatic

◆ json_value()

Json::Value Problem::json_value ( )
inline

References kind, streamid, and values.

◆ printout()

std::string Problem::printout ( )
inline

Return a one-line string enumerating this problem.

References nidas::core::getSample(), kind, streamid, and values.

Member Data Documentation

◆ kind

std::string Problem::kind

Referenced by json_value(), and printout().

◆ MISSING_VALUES

const std::string Problem::MISSING_VALUES { "missing-values" }
static

◆ NO_SAMPLES

const std::string Problem::NO_SAMPLES { "no-samples" }
static

◆ SAMPLE_RATE_MISMATCH

const std::string Problem::SAMPLE_RATE_MISMATCH { "sample-rate-mismatch" }
static

◆ streamid

std::string Problem::streamid

Referenced by json_value(), and printout().

◆ values

Json::Value Problem::values {Json::objectValue}

Referenced by json_value(), and printout().


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