Value.hpp
192 T operator*() {
Encapsulates a value returned an instance of ResultsBase for a specified property.
Definition: Value.hpp:75
Exception thrown when a property does not exist in the data set.
Definition: Exceptions.hpp:118
T getValue()
Gets the value contained in the Value instance.
Definition: Value.hpp:130
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:120
void setNoValueReason(fiftyoneDegreesResultsNoValueReason reason, const char *message)
Set the reason there is no value available.
Definition: Value.hpp:173
Exception indicating that there were no values in the results for the requested property.
Definition: Exceptions.hpp:161
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:101
fiftyoneDegreesResultsNoValueReason getNoValueReason()
Indicates the reason why valid values are not available.
Definition: Value.hpp:111
fiftyoneDegreesResultsNoValueReason
Enum containing reasons which cause a value to not be present or valid.
Definition: results.h:56
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:149
void setValue(T targetValue)
Set the value to be contained in the Value instance.
Definition: Value.hpp:160
There is no result which contains a value for the requested property.
Definition: results.h:70