Value.hpp
Encapsulates a value returned an instance of ResultsBase for a specified property.
Definition: Value.hpp:74
Exception thrown when a property does not exist in the data set.
Definition: Exceptions.hpp:122
T getValue()
Gets the value contained in the Value instance.
Definition: Value.hpp:129
There are too many values to be expressed as the requested type.
Definition: results.h:80
There are no results to get a value from.
Definition: results.h:77
const char * getNoValueMessage()
Gets a message explaining why there is no value.
Definition: Value.hpp:119
void setNoValueReason(fiftyoneDegreesResultsNoValueReason reason, const char *message)
Set the reason there is no value available.
Definition: Value.hpp:172
Exception indicating that there were no values in the results for the requested property.
Definition: Exceptions.hpp:165
The requested property does not exist, or is not a required property.
Definition: results.h:65
bool hasValue()
Indicates whether or not a valid value has been returned by the ResultsBase instance.
Definition: Value.hpp:100
fiftyoneDegreesResultsNoValueReason getNoValueReason()
Indicates the reason why valid values are not available.
Definition: Value.hpp:110
fiftyoneDegreesResultsNoValueReason
Enum containing reasons which cause a value to not be present or valid.
Definition: results.h:56
T operator *()
Gets the value contained in the Value instance.
Definition: Value.hpp:191
The difference value is higher than the threshold, see the Pattern API.
Definition: results.h:57
Exception indicating that an attempt was made to return a single value type (e.g.
Definition: Exceptions.hpp:153
void setValue(T targetValue)
Set the value to be contained in the Value instance.
Definition: Value.hpp:159
There is no result which contains a value for the requested property.
Definition: results.h:70