#include <datadescriptiondefinition.h>
Interface to store descriptions definitions of objects. The DataDescription definition defines a sequence of "commands" to define attributes, include, commands, strings, etc.
公共成员函数 |
|
MAXON_METHOD DataDictionary | GetInfo () const |
MAXON_METHOD Result < void > | SetInfo (const DataDictionary &info) |
MAXON_METHOD Int | GetEntryCount () const |
MAXON_METHOD Result < BaseArray < DataDescriptionEntry > > | GetEntries () const |
MAXON_METHOD Result < DataDescriptionEntry > | GetEntry ( Int idx) const |
MAXON_METHOD Result < DataDescriptionEntry > | FindEntry (const InternedId &id) const |
MAXON_METHOD Result < Int > | AddEntry (const DataDescriptionEntry &props) |
MAXON_METHOD Result < void > | ReplaceEntry (const DataDescriptionEntry &props) |
MAXON_METHOD Result < Bool > | ReplaceEntry ( Int idx, const DataDescriptionEntry &props) |
MAXON_METHOD Result < void > | EraseEntry ( Int idx) |
MAXON_METHOD void | 重置 () |
静态公共成员函数 |
|
static MAXON_METHOD Result < void > | MergeDescriptionDefinition (DataDescriptionDefinition &target, const DataDescriptionDefinition &source, Bool overwriteIncludes, Bool skipIncludes) |
static MAXON_METHOD Result < 数据 > | GetDataDefaults (const DataDictionary &dataEntry) |
static MAXON_METHOD Result < 数据 > | GetDataValueOrDefaults (const InternedId &dataId, const DataDictionary &dataEntry, GETDATAFLAGS flags, const GetDataCallbackType &getDataCallback) |
static MAXON_METHOD DataDescriptionDefinitionInterface * | 创建 () |
static const MAXON_METHOD DataDescriptionDefinitionInterface * | NullValuePtr () |
私有成员函数 |
|
MAXON_INTERFACE ( DataDescriptionDefinitionInterface , MAXON_REFERENCE_COPY_ON_WRITE , "net.maxon.interface.datadescriptiondefinition") |
|
private |
MAXON_METHOD DataDictionary GetInfo | ( | ) | const |
Returns the info dictionary.
MAXON_METHOD Result <void> SetInfo | ( | const DataDictionary & | info | ) |
SetInfo the info dictionary of the description.
[in] | info | Dictionary with infos. |
MAXON_METHOD Int GetEntryCount | ( | ) | const |
Returns the number of entries in the description.
MAXON_METHOD Result < BaseArray < DataDescriptionEntry > > GetEntries | ( | ) | const |
Returns a array with all entries.
MAXON_METHOD Result < DataDescriptionEntry > GetEntry | ( | Int | idx | ) | const |
Returns a specific entry with the given index.
[in] | idx | Index to return. |
MAXON_METHOD Result < DataDescriptionEntry > FindEntry | ( | const InternedId & | id | ) | const |
FindEntry searches the first occurrence of the entry.
[in] | id | Id to search. |
MAXON_METHOD Result < Int > AddEntry | ( | const DataDescriptionEntry & | props | ) |
AddEntry to the description.
[in] | props | Attribute to add to the end of the list. |
MAXON_METHOD Result <void> ReplaceEntry | ( | const DataDescriptionEntry & | props | ) |
Replaces an entry.
[in] | props | Properties to replace. |
MAXON_METHOD Result < Bool > ReplaceEntry | ( | Int | idx , |
const DataDescriptionEntry & | props | ||
) |
Replaces an entry.
[in] | idx | Index to replace. |
[in] | props | Properties to replace. |
MAXON_METHOD Result <void> EraseEntry | ( | Int | idx | ) |
EraseEntry an attribute from the description.
[in] | idx | Index of the attribute to delete. |
MAXON_METHOD void Reset | ( | ) |
Resets the description and clear all attributes.
|
static |
Merges the given descriptions.
[in] | target | Target description to overwrite. |
[in] | source | New entries to merge into target. |
[in] | overwriteIncludes | True to overwrite the includes of target id source has includes. |
|
static |
|
static |
|
static |
|
static |