18 #ifndef PRTX_ATTRIBUTABLE_H_ 19 #define PRTX_ATTRIBUTABLE_H_ 21 #include "prt/Attributable.h" 23 #include "prtx/prtx.h" 24 #include "prtx/Types.h" 66 virtual bool hasKey (
const std::wstring& key)
const = 0;
71 virtual PrimitiveType getType (
const std::wstring& key)
const = 0;
78 virtual Bool getBool (
const std::wstring& key)
const = 0;
84 virtual int32_t getInt (
const std::wstring& key)
const = 0;
90 virtual double getFloat (
const std::wstring& key)
const = 0;
96 virtual const std::wstring& getString (
const std::wstring& key)
const = 0;
103 virtual const BoolVector& getBoolArray (
const std::wstring& key)
const = 0;
109 virtual const Int32Vector& getIntArray (
const std::wstring& key)
const = 0;
115 virtual const DoubleVector& getFloatArray (
const std::wstring& key)
const = 0;
121 virtual const WStringVector& getStringArray (
const std::wstring& key)
const = 0;
128 virtual void* getBlindData (
const std::wstring& key)
const = 0;
146 virtual void setBool (
const std::wstring& key,
Bool val) = 0;
152 virtual void setInt (
const std::wstring& key, int32_t val) = 0;
158 virtual void setFloat (
const std::wstring& key,
double val) = 0;
164 virtual void setString (
const std::wstring& key,
const std::wstring& val) = 0;
171 virtual void setBoolArray (
const std::wstring& key,
const BoolVector& val) = 0;
177 virtual void setIntArray (
const std::wstring& key,
const Int32Vector& val) = 0;
183 virtual void setFloatArray (
const std::wstring& key,
const DoubleVector& val) = 0;
189 virtual void setStringArray (
const std::wstring& key,
const WStringVector& val) = 0;
196 virtual void setBlindData (
const std::wstring& key,
void* val) = 0;
Float array type.
Definition: Attributable.h:51
Float type.
Definition: Attributable.h:47
Boolean type.
Definition: Attributable.h:48
uint8_t PrimitiveType
Definition: /Attributable.h:42
uint8_t Bool
uint8_t based Bool type
Definition: Types.h:30
std::vector< prtx::Bool > BoolVector
vector of uint8_t based Bool type
Definition: Types.h:31
Definition: /Attributable.h:37
std::vector< double > DoubleVector
vector of double
Definition: Types.h:32
Blind data type.
Definition: Attributable.h:54
Boolean array type.
Definition: Attributable.h:52
Integer type.
Definition: Attributable.h:49
Definition: /Attributable.h:139
Undefined type.
Definition: Attributable.h:45
The Procedural Runtime eXtension namespace. The prtx namespace contains the tools to extend the Proce...
Definition: AnnotationBuilder.h:35
String type.
Definition: Attributable.h:46
String array type.
Definition: Attributable.h:50
Integer array type.
Definition: Attributable.h:53
std::vector< int32_t > Int32Vector
vector of int32_t
Definition: Types.h:33
Number of primitive types.
Definition: Attributable.h:56
Blind data array type.
Definition: Attributable.h:55
std::vector< std::wstring > WStringVector
vector of std::wstring
Definition: Types.h:35