ResultsBase.hpp
Encapsulates a value returned an instance of ResultsBase for a specified property.
Definition: Value.hpp:74
virtual bool hasValuesInternal(int requiredPropertyIndex)=0
Get whether or not there are valid values available for the property identified by its index in the r...
fiftyoneDegreesPropertiesAvailable * available
Pointer to the underlying available properties structure.
Definition: ResultsBase.hpp:358
Value< double > getValueAsDouble(const char *propertyName)
Get a double representation of the value associated with the required property name.
Value< int > getValueAsInteger(const char *propertyName)
Get an integer representation of the value associated with the required property name.
virtual ~ResultsBase()
Free any memory associated with the results and release any resource handles.
int getAvailableProperties() const
Get the number of available properties contained in the Results instance.
Value< vector< string > > getValues(const char *propertyName)
Get a vector with all values associated with the required property name.
Value< bool > getValueAsBool(const char *propertyName)
Get a boolean representation of the value associated with the required property name.
virtual void getValuesInternal(int requiredPropertyIndex, vector< string > &values)=0
Get the values for the index in required properties and add them to the values vector supplied.
Value< string > getValueAsString(const char *propertyName)
Get a string representation of the value associated with the required property name.
string getPropertyName(int requiredPropertyIndex) const
Get the name of the property at the require property index, or an empty string if the required proper...
ResultsBase(fiftyoneDegreesResultsBase *results, shared_ptr< fiftyoneDegreesResourceManager > manager)
Create a new instance of Results from the results structure provided.
int getRequiredPropertyIndex(const char *propertyName)
Get the index in the available properties for the property name provided.
virtual fiftyoneDegreesResultsNoValueReason getNoValueReasonInternal(int requiredPropertyIndex)=0
Get the reason for values not being available.
Array of items of type fiftyoneDegreesPropertyAvailable used to easily access and track the size of t...
Definition: properties.h:165
fiftyoneDegreesResultsNoValueReason
Enum containing reasons which cause a value to not be present or valid.
Definition: results.h:56
vector< string > getProperties() const
Get the names of the properties which are available in the Results instance.
bool containsProperty(const string &propertyName) const
Get whether or not this results instance contains a value for the requested property.
Encapsulates the results of an engine's processing.
Definition: ResultsBase.hpp:82
Base results structure which any processing results should extend.
Definition: results.h:94
virtual const char * getNoValueMessageInternal(fiftyoneDegreesResultsNoValueReason reason)=0
Get the message explaining the reason for missing values.