![]() |
Murl Engine API
Version 2018.3
|
A container for storing attribute information about a class. More...
#include <murl_attribute_info.h>
A container for storing attribute information about a class.
This class holds an array of individual items each describing a single object attribute, which is used e.g. in XML graph nodes. An attribute usually (but not necessarily) refers to a single object property (see Murl::PropertyInfo). It describes which elements or components of that property are modified when the attribute is set. See also Murl::IFactoryObject.
Classes | |
struct | Item |
A single attribute information item. More... | |
Public Member Functions | |
AttributeInfo (const Item *items, UInt32 numberOfItems) | |
The constructor. More... | |
UInt32 | GetNumberOfItems () const |
Get the number of items. More... | |
const Item * | GetItemByIndex (UInt32 index) const |
Get a single item by its index. More... | |
const Item * | GetItemById (UInt32 id) const |
Get a single item by its ID. More... | |
const Item * | GetItemByName (const String &name) const |
Get a single item by its name. More... | |
UInt32 | GetIdByNameAndHash (const String &name, UInt32 hash) const |
Get the ID of an item by its name. More... | |
String | GetNameById (UInt32 id) const |
Get a single item's name by its ID. More... | |
The constructor.
items | An array of individual attribute info items. Must be delimited by an item with the highest ID in the array and an empty name. |
numberOfItems | The number of items in the array, including the terminating item. |
|
inline |
Get the number of items.
Get a single item by its index.
index | The item index, from 0 to GetNumberOfItems()-1. |
Get a single item by its ID.
id | The ID to search for. |
Get a single item by its name.
name | The name to search for. |
Get the ID of an item by its name.
name | The name to search for. |
hash | The name string's hash value. |
Get a single item's name by its ID.
id | The ID to search for. |