5 #include "ControlNetFileV0001.pb.h"
6 #include "ControlNetFileV0002.pb.h"
54 QString name = keywordRep.
name();
82 if(protoBuf.has_doubledatatype()) {
206 IString msg =
"Cannot write an invalid log data entry to binary format";
212 protoBufDataEntry.set_doubledatatype(
p_dataType);
215 return protoBufDataEntry;
227 QString name)
const {
233 if (name == thisTypeName) {
255 IString msg =
"Cannot convert an invalid data type to a string";
260 return "Obsolete_Eccentricity";
263 return "GoodnessOfFit";
266 return "MinimumPixelZScore";
269 return "MaximumPixelZScore";
275 return "WholePixelCorrelation";
278 return "SubPixelCorrelation";
281 return "Obsolete_AverageResidual";
284 QString msg =
"Unknown data type [" +
toString(type) +
"]";
NumericLogDataType GetDataType() const
Get the data type associated with this log data.
void Init()
This is a helper method for the constructor that initializes the data to a default, invalid state.
const double Null
Value for an Isis Null pixel.
Deprecated keyword kept for backwards compatability with older Control Networks.
NumericLogDataType
Please do not change existing values in this list except the size - it will break backwards compadibi...
Deprecated keyword kept for backwards compatability with older Control Networks.
Statistical and similar ControlMeasure associated information.
double GetNumericalValue() const
Get the value associated with this log data.
This is a placeholder for unset values.
QString toString(bool boolToConvert)
Global function to convert a boolean to a string.
double toDouble(const QString &string)
Global function to convert from a string to a double.
This error is for when a programmer made an API call that was illegal.
ControlPointFileEntryV0002_Measure_MeasureLogData ToProtocolBuffer() const
This converts the log data to a protocol buffer object.
Control measures store z-scores in pairs.
double p_numericalValue
The actual value of the data.
Deprecated keyword kept for backwards compatability with older Control Networks.
#define _FILEINFO_
Macro for the filename and line number.
QString name() const
Returns the keyword name.
static const int MaximumNumericLogDataType
This value must be > the largest enumerated value in this type or convertions to and from Pvl will no...
A single keyword-value pair.
bool IsValid() const
This tests if the log data is complete and valid.
GoodnessOfFit is pointreg information for reference measures.
void SetNumericalValue(double)
This updates the value associated with a NumericLogDataType.
QVariant GetValue() const
Get the data type associated with this log data.
Deprecated keyword kept for backwards compatability with older Control Networks.
NumericLogDataType p_dataType
Which kind of value are we storing.
QString DataTypeToName(NumericLogDataType) const
This converts the log data type to a string and is used internally for convertions to and from Pvl...
Adds specific functionality to C++ strings.
Deprecated keyword kept for backwards compatability with older Control Networks.
ControlMeasureLogData()
This creates an empty, invalid (IsValid() will return false), instance.
~ControlMeasureLogData()
Destructor.
void SetDataType(NumericLogDataType)
This changes the type of this log data.
PvlKeyword ToKeyword() const
This converts the log data to a PvlKeyword.
NumericLogDataType NameToDataType(QString name) const
This converts a string to a log data type and is useful for converting Pvl keywords to Numeric Log Da...