18 #ifndef PRT_ATTRIBUTABLE_H_ 19 #define PRT_ATTRIBUTABLE_H_ 22 #include "prt/Status.h" 68 virtual const wchar_t*
const* getKeys (
size_t* count,
Status* stat = 0)
const = 0;
77 virtual bool hasKey (
const wchar_t* key,
Status* stat = 0)
const = 0;
86 virtual PrimitiveType getType (
const wchar_t* key,
Status* stat = 0)
const = 0;
96 virtual bool getBool (
const wchar_t* key,
Status* stat = 0)
const = 0;
106 virtual int32_t getInt (
const wchar_t* key,
Status* stat = 0)
const = 0;
116 virtual double getFloat (
const wchar_t* key,
Status* stat = 0)
const = 0;
127 virtual const wchar_t* getString (
const wchar_t* key,
Status* stat = 0)
const = 0;
139 virtual const bool* getBoolArray (
const wchar_t* key,
size_t* count,
Status* stat = 0)
const = 0;
151 virtual const int32_t* getIntArray (
const wchar_t* key,
size_t* count,
Status* stat = 0)
const = 0;
163 virtual const double* getFloatArray (
const wchar_t* key,
size_t* count,
Status* stat = 0)
const = 0;
175 virtual const wchar_t*
const* getStringArray (
const wchar_t* key,
size_t* count,
Status* stat = 0)
const = 0;
179 virtual ~Attributable() { }
196 virtual Status setBool (
const wchar_t* key,
bool value) = 0;
205 virtual Status setInt (
const wchar_t* key, int32_t value) = 0;
214 virtual Status setFloat (
const wchar_t* key,
double value) = 0;
223 virtual Status setString (
const wchar_t* key,
const wchar_t* value) = 0;
233 virtual Status setBoolArray (
const wchar_t* key,
const bool* value,
size_t count) = 0;
243 virtual Status setIntArray (
const wchar_t* key,
const int32_t* value,
size_t count) = 0;
253 virtual Status setFloatArray (
const wchar_t* key,
const double* value,
size_t count) = 0;
263 virtual Status setStringArray (
const wchar_t* key,
const wchar_t*
const* value,
size_t count) = 0;
Float array type.
Definition: Attributable.h:51
Float type.
Definition: Attributable.h:47
Boolean type.
Definition: Attributable.h:48
Blind data type.
Definition: Attributable.h:54
Definition: Attributable.h:186
Boolean array type.
Definition: Attributable.h:52
Integer type.
Definition: Attributable.h:49
Undefined type.
Definition: Attributable.h:45
String type.
Definition: Attributable.h:46
PrimitiveType
Definition: Attributable.h:44
String array type.
Definition: Attributable.h:50
Definition: Attributable.h:38
Integer array type.
Definition: Attributable.h:53
Status
Definition: Status.h:31
The Procedural Runtime API namespace. The prt namespace contains the top level entry points into the ...
Definition: Annotation.h:24
Blind data array type.
Definition: Attributable.h:55