A simple container for attributes.
- Copyright
- (C) 2007 Radon Labs GmbH (C) 2013-2020 Individual contributors, see AUTHORS file
|
| | AttributeContainer () |
| | constructor
|
| |
| | ~AttributeContainer () |
| | destructor
|
| |
| bool | HasAttr (const AttrId &attrId) const |
| | check if an attribute exists in the container
|
| |
| void | SetAttr (const Attribute &attr) |
| | set a single attribute, new or existing
|
| |
| const Attribute & | GetAttr (const AttrId &attrId) const |
| | get a single attribute
|
| |
| const Util::Dictionary< AttrId, Attribute > & | GetAttrs () const |
| | read access to the attribute array
|
| |
| void | RemoveAttr (const AttrId &attrId) |
| | remove an attribute
|
| |
| void | Clear () |
| | clear the attribute container
|
| |
| void | AddAttr (const Attribute &attr) |
| | add a new attribute, faster then SetAttr(), but attribute may not exist!
|
| |
| void | SetBool (const BoolAttrId &attrId, bool val) |
| | set bool value
|
| |
| bool | GetBool (const BoolAttrId &attrId) const |
| | get bool value
|
| |
| bool | GetBool (const BoolAttrId &attrId, bool defaultValue) const |
| | get bool value with default if not exists
|
| |
| void | SetFloat (const FloatAttrId &attrId, float val) |
| | set float value
|
| |
| float | GetFloat (const FloatAttrId &attrId) const |
| | get float value
|
| |
| float | GetFloat (const FloatAttrId &attrId, float defaultValue) const |
| | get float value with default if not exists
|
| |
| void | SetInt (const IntAttrId &attrId, int val) |
| | set int value
|
| |
| int | GetInt (const IntAttrId &attrId) const |
| | get int value
|
| |
| int | GetInt (const IntAttrId &attrId, int defaultValue) const |
| | get int value with default if not exists
|
| |
| void | SetString (const StringAttrId &attrId, const Util::String &val) |
| | set string value
|
| |
| const Util::String & | GetString (const StringAttrId &attrId) const |
| | get string value
|
| |
| const Util::String & | GetString (const StringAttrId &attrId, const Util::String &defaultValue) const |
| | get string value with default if not exists
|
| |
| void | SetFloat4 (const Vec4AttrId &attrId, const Math::vec4 &val) |
| | set float4 value
|
| |
| Math::vec4 | GetVec4 (const Vec4AttrId &attrId) const |
| | get float4 value
|
| |
| Math::vec4 | GetVec4 (const Vec4AttrId &attrId, const Math::vec4 &defaultValue) const |
| | get float4 value with default if not exists
|
| |
| void | SetMatrix44 (const Mat4AttrId &attrId, const Math::mat4 &val) |
| | set matrix44 value
|
| |
| const Math::mat4 & | GetMat4 (const Mat4AttrId &attrId) const |
| | get matrix44 value
|
| |
| const Math::mat4 & | GetMat4 (const Mat4AttrId &attrId, const Math::mat4 &defaultValue) const |
| | get matrix44 value with default if not exists
|
| |
| void | SetGuid (const GuidAttrId &attrId, const Util::Guid &guid) |
| | set guid value
|
| |
| const Util::Guid & | GetGuid (const GuidAttrId &attrId) const |
| | get guid value
|
| |
| const Util::Guid & | GetGuid (const GuidAttrId &attrId, const Util::Guid &defaultValue) const |
| | get guid value with default if not exists
|
| |
| void | SetBlob (const BlobAttrId &attrId, const Util::Blob &blob) |
| | set blob value
|
| |
| const Util::Blob & | GetBlob (const BlobAttrId &attrId) const |
| | get blob value
|
| |
| const Util::Blob & | GetBlob (const BlobAttrId &attrId, const Util::Blob &defaultValue) const |
| | get blob value with default if not exists
|
| |