31 #ifndef AccumulationConverter_H_
32 #define AccumulationConverter_H_
63 bool decode(
double & value)
const {
return true; };
72 bool decode(
double & value,
double & weight)
const {
return true; };
76 void encode(
double & value,
double & weight)
const {};
87 void encodeStdDev(
double & stdDev)
const {};
103 double getNoReadingMarker()
const {
112 std::ostream & toOstr(std::ostream & ostr)
const {
125 return converter.toOstr(ostr);
Definition: DataSelector.cpp:1277
Converts raw data to values appropriate for accumulation.
Definition: AccumulationConverter.h:50
virtual bool decode(double &value, double &weight) const
Definition: AccumulationConverter.h:72
double getNoDataMarker() const
Returns the value when weight==0.0. Physically, this relates to results obtained under measurement ac...
Definition: AccumulationConverter.h:95
virtual void encode(double &value, double &weight) const
Converts natural-scale data to storage data, applying marker codes if needed.
Definition: AccumulationConverter.h:76
std::string type
Default output storage data type.
Definition: AccumulationConverter.h:109
virtual bool decode(double &value) const
Converts storage data to natural scale.
Definition: AccumulationConverter.h:63
virtual void encodeWeight(double &weight) const
Converts natural-scale data to storage data, applying marker codes if needed.
Definition: AccumulationConverter.h:80
virtual void encodeCount(double &weight) const
Converts natural-scale data to storage data, applying marker codes if needed.
Definition: AccumulationConverter.h:84
virtual void encodeDiff(double &diff) const
When using unsigned types, encoding typically requires adding a positive bias and scaling the data.
Definition: AccumulationConverter.h:91