Public Types |
Public Member Functions |
Static Public Member Functions |
Protected Attributes |
Friends |
List of all members
SETimeSeriesValidationTarget Class Reference
#include <SEValidationTarget.h>
Inherits SEValidationTarget.
Public Types | |
enum class | eComparisonType { None =0 , EqualToValue , Range } |
enum class | eTargetType { Mean =0 , Minimum , Maximum , MeanPerIdealWeight_kg , MaxPerIdealWeight_kg , MinPerIdealWeight_kg } |
Public Member Functions | |
SETimeSeriesValidationTarget () | |
virtual | ~SETimeSeriesValidationTarget ()=default |
void | Clear () override |
eTargetType | GetTargetType () const |
eComparisonType | GetComparisonType () const |
void | SetEqualTo (double d, eTargetType t) |
void | SetRange (double min, double max, eTargetType t) |
bool | ComputeError () |
double | GetError () const |
double | GetDataValue () const |
std::vector< double > & | GetData () |
Public Member Functions inherited from SEValidationTarget | |
virtual | ~SEValidationTarget ()=default |
virtual void | Clear () |
virtual bool | IsValid () |
std::string | GetHeader () const |
void | SetHeader (const std::string &h) |
std::string | GetReference () const |
void | SetReference (const std::string &c) |
std::string | GetNotes () const |
void | SetNotes (const std::string &n) |
double | GetTargetMaximum () const |
double | GetTargetMinimum () const |
double | GetTarget () const |
Public Member Functions inherited from Loggable | |
Loggable (Logger *logger=nullptr) | |
Loggable (std::string const &logfile) | |
virtual | ~Loggable () |
virtual Logger * | GetLogger () const |
virtual void | SetLogger (Logger &logger) |
virtual void | Debug (std::string const &msg) const |
virtual void | Debug (std::stringstream &msg) const |
virtual void | Debug (std::ostream &msg) const |
virtual void | Info (std::string const &msg) const |
virtual void | Info (std::stringstream &msg) const |
virtual void | Info (const std::stringstream &msg) const |
virtual void | Info (std::ostream &msg) const |
virtual void | Warning (std::string const &msg) const |
virtual void | Warning (std::stringstream &msg) const |
virtual void | Warning (std::ostream &msg) const |
virtual void | Error (std::string const &msg) const |
virtual void | Error (std::stringstream &msg) const |
virtual void | Error (std::ostream &msg) const |
virtual void | Fatal (std::string const &msg) const |
virtual void | Fatal (std::stringstream &msg) const |
virtual void | Fatal (std::ostream &msg) const |
Static Public Member Functions | |
static bool | SerializeToString (const std::vector< const SETimeSeriesValidationTarget * > &src, std::string &output, eSerializationFormat m, Logger *logger) |
static bool | SerializeToFile (const std::vector< const SETimeSeriesValidationTarget * > &src, const std::string &filename, Logger *logger) |
static bool | SerializeFromString (const std::string &src, std::vector< SETimeSeriesValidationTarget * > &dst, eSerializationFormat m, Logger *logger) |
static bool | SerializeFromFile (const std::string &filename, std::vector< SETimeSeriesValidationTarget * > &dst, Logger *logger) |
Protected Attributes | |
eTargetType | m_TargetType |
eComparisonType | m_ComparisonType |
double | m_Error |
std::vector< double > | m_Data |
double | m_ComparisonValue |
Protected Attributes inherited from SEValidationTarget | |
std::string | m_Header |
std::string | m_Reference |
std::string | m_Notes |
double | m_Target |
double | m_TargetMaximum |
double | m_TargetMinimum |
Protected Attributes inherited from Loggable | |
bool | myLogger |
Logger * | m_Logger |
Friends | |
class | PBValidation |
Additional Inherited Members | |
Protected Member Functions inherited from SEValidationTarget | |
SEValidationTarget () | |
Member Enumeration Documentation
◆ eComparisonType
|
strong |
◆ eTargetType
|
strong |
Constructor & Destructor Documentation
◆ SETimeSeriesValidationTarget()
SETimeSeriesValidationTarget::SETimeSeriesValidationTarget | ( | ) |
◆ ~SETimeSeriesValidationTarget()
|
virtualdefault |
Member Function Documentation
◆ Clear()
|
overridevirtual |
Reimplemented from SEValidationTarget.
◆ ComputeError()
bool SETimeSeriesValidationTarget::ComputeError | ( | ) |
◆ GetComparisonType()
|
inline |
◆ GetData()
|
inline |
◆ GetDataValue()
|
inline |
◆ GetError()
|
inline |
◆ GetTargetType()
|
inline |
◆ SerializeFromFile()
|
static |
◆ SerializeFromString()
|
static |
◆ SerializeToFile()
|
static |
◆ SerializeToString()
|
static |
◆ SetEqualTo()
void SETimeSeriesValidationTarget::SetEqualTo | ( | double | d, |
eTargetType | t | ||
) |
◆ SetRange()
void SETimeSeriesValidationTarget::SetRange | ( | double | min, |
double | max, | ||
eTargetType | t | ||
) |
Friends And Related Function Documentation
◆ PBValidation
|
friend |
Member Data Documentation
◆ m_ComparisonType
|
protected |
◆ m_ComparisonValue
|
protected |
◆ m_Data
|
protected |
◆ m_Error
|
protected |
◆ m_TargetType
|
protected |