23 #ifndef FIFTYONE_DEGREES_RESULTS_BASE_HPP 24 #define FIFTYONE_DEGREES_RESULTS_BASE_HPP 30 #include "Exceptions.hpp" 32 #include "RequiredPropertiesConfig.hpp" 102 shared_ptr<fiftyoneDegreesResourceManager> manager);
121 int getAvailableProperties()
const;
129 bool containsProperty(
const string &propertyName)
const;
138 vector<string> getProperties()
const;
147 string getPropertyName(
int requiredPropertyIndex)
const;
233 virtual Value<string> getValueAsString(
int requiredPropertyIndex);
242 Value<bool> getValueAsBool(
const char *propertyName);
251 Value<bool> getValueAsBool(
const string &propertyName);
260 Value<bool> getValueAsBool(
const string *propertyName);
269 virtual Value<bool> getValueAsBool(
int requiredPropertyIndex);
279 Value<int> getValueAsInteger(
const char *propertyName);
289 Value<int> getValueAsInteger(
const string &propertyName);
299 Value<int> getValueAsInteger(
const string *propertyName);
309 virtual Value<int> getValueAsInteger(
int requiredPropertyIndex);
349 virtual Value<double> getValueAsDouble(
int requiredPropertyIndex);
364 int getRequiredPropertyIndex(
const char *propertyName);
374 virtual void getValuesInternal(
375 int requiredPropertyIndex,
376 vector<string> &values) = 0;
386 virtual bool hasValuesInternal(
int requiredPropertyIndex) = 0;
397 virtual const char* getNoValueMessageInternal(
409 int requiredPropertyIndex) = 0;
420 shared_ptr<fiftyoneDegreesResourceManager> manager;
Encapsulates a value returned an instance of ResultsBase for a specified property.
Definition: Value.hpp:75
fiftyoneDegreesPropertiesAvailable * available
Pointer to the underlying available properties structure.
Definition: ResultsBase.hpp:357
51Degrees base namespace.
Definition: ComponentMetaDataBuilderHash.hpp:34
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
Encapsulates the results of an engine's processing.
Definition: ResultsBase.hpp:81
Base results structure which any processing results should extend.
Definition: results.h:94