virtual Value< string > getValueAsString(int requiredPropertyIndex)
Get a string representation of the value associated with the required property index.
Value< double > getValueAsDouble(const string *propertyName)
Get a double representation of the value associated with the required property name.
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...
Value< bool > getValueAsBool(const char *propertyName)
Get a boolean representation of the value associated with the required property name.
Value< vector< string > > getValues(const string *propertyName)
Get a vector with all values associated with the required property name.
Value< int > getValueAsStrictInteger(int requiredPropertyIndex)
Get the value as an integer only if all of its text is a whole number an int can hold.
Value< vector< string > > getValues(int requiredPropertyIndex)
Get a vector with all values associated with the required property index.
virtual Value< bool > getValueAsBool(int requiredPropertyIndex)
Get a boolean representation of the value associated with the required property index.
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.
virtual Value< int > getValueAsInteger(int requiredPropertyIndex)
Get an integer representation of the value associated with the required property index.
Value< double > getValueAsDouble(const char *propertyName)
Get a double representation of the value associated with the required property name.
Value< vector< string > > getValues(const char *propertyName)
Get a vector with all values associated with the required property name.
Value< vector< string > > getValues(const string &propertyName)
Get a vector with all values associated with the required property name.
Value< double > getValueAsStrictDouble(const char *propertyName)
Get the value as a double only if all of its text is a finite number.
virtual fiftyoneDegreesResultsNoValueReason getNoValueReasonInternal(int requiredPropertyIndex)=0
Get the reason for values not being available.
Value< bool > getValueAsStrictBool(int requiredPropertyIndex)
Get the value as a boolean only if its text is "True" or "False".
ResultsBase(fiftyoneDegreesResultsBase *results, shared_ptr< fiftyoneDegreesResourceManager > manager)
Create a new instance of Results from the results structure provided.
Value< string > getValueAsString(const string *propertyName)
Get a string representation of the value associated with the required property name.
bool containsProperty(const string &propertyName) const
Get whether or not this results instance contains a value for the requested property.
Value< bool > getValueAsStrictBool(const string &propertyName)
Get the value as a boolean only if its text is "True" or "False".
int allowedRequiredPropertyIndex(int requiredPropertyIndex) const
Get the index a read by required property index uses, which is the index given when the engine named ...
Value< int > getValueAsStrictInteger(const string &propertyName)
Get the value as an integer only if all of its text is a whole number an int can hold.
int getAvailableProperties() const
Get the number of required property indexes, which is the number of names the engine was created with...
Value< double > getValueAsStrictDouble(const string &propertyName)
Get the value as a double only if all of its text is a finite number.
virtual const char * getNoValueMessageInternal(fiftyoneDegreesResultsNoValueReason reason)=0
Get the message explaining the reason for missing values.
Value< bool > getValueAsBool(const string *propertyName)
Get a boolean representation of the value associated with the required property name.
Value< bool > getValueAsBool(const string &propertyName)
Get a boolean representation of the value associated with the required property name.
Value< int > getValueAsStrictInteger(const char *propertyName)
Get the value as an integer only if all of its text is a whole number an int can hold.
string getPropertyName(int requiredPropertyIndex) const
Get the name of the property at the required property index, or an empty string if there is no proper...
Value< string > getValueAsString(const string &propertyName)
Get a string 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.
fiftyoneDegreesPropertiesAvailable * available
Pointer to the underlying available properties structure.
Definition ResultsBase.hpp:512
vector< string > getProperties() const
Get the names of the properties the data set has, in ascending order.
Value< double > getValueAsDouble(const string &propertyName)
Get a double representation of the value associated with the required property name.
Value< int > getValueAsInteger(const string &propertyName)
Get an integer representation of the value associated with the required property name.
virtual Value< double > getValueAsDouble(int requiredPropertyIndex)
Get a double representation of the value associated with the required property index.
virtual ~ResultsBase()
Free any memory associated with the results and release any resource handles.
Value< string > getValueAsString(const char *propertyName)
Get a string representation of the value associated with the required property name.
Value< bool > getValueAsStrictBool(const char *propertyName)
Get the value as a boolean only if its text is "True" or "False".
Value< int > getValueAsInteger(const string *propertyName)
Get an integer representation of the value associated with the required property name.
Value< double > getValueAsStrictDouble(int requiredPropertyIndex)
Get the value as a double only if all of its text is a finite number.
int getRequiredPropertyIndex(const char *propertyName)
Get the required property index of the property name provided.
Encapsulates a value returned an instance of ResultsBase for a specified property.
Definition Value.hpp:76
fiftyoneDegreesPropertyAvailableArray fiftyoneDegreesPropertiesAvailable
Array of properties which are available in a data set.
Definition properties.h:223
fiftyoneDegreesResultsNoValueReason
Enum containing reasons which cause a value to not be present or valid.
Definition results.h:95
A C++ wrapper class for transform.h conversion routines.
Definition ComponentMetaDataBuilderHash.hpp:33
Base results structure which any processing results should extend.
Definition results.h:158
