AVBlocks for C++
1.13
Audio and Video Software Development Kit
|
MetaAttributeList represents the meta attributes inside a Metadata object. More...
Inherits Reference.
Public Member Functions | |
virtual MetaAttribute * | at (int32_t index) const =0 |
Returns an attribute by index. More... | |
virtual MetaAttribute * | itemByName (const char *name) const =0 |
Returns an attribute by name. More... | |
virtual void | add (MetaAttribute *attrib)=0 |
Adds a new attribute to the end of the list. More... | |
virtual int32_t | count () const =0 |
Returns the number of attributes in the list. More... | |
virtual void | clear ()=0 |
Removes all attributes from the collection. More... | |
virtual bool_t | remove (int32_t index)=0 |
Removes an attribute by index. More... | |
virtual bool_t | insert (int32_t itemIndex, MetaAttribute *attrib)=0 |
Inserts an attribute at the specified index in the list. More... | |
virtual bool_t | setAt (int32_t itemIndex, MetaAttribute *attrib)=0 |
Sets a new attribute at the specified index. More... | |
Public Member Functions inherited from Reference | |
virtual int32_t | retain () const =0 |
Retains the instance. More... | |
virtual int32_t | release () const =0 |
Releases the instance. More... | |
virtual int32_t | retainCount () const =0 |
Returns the current reference count. More... | |
Protected Member Functions | |
virtual | ~MetaAttributeList () |
This object can be destroyed only by the library that has created it. More... | |
MetaAttributeList represents the meta attributes inside a Metadata object.
This is a modifiable and indexable collection that exists only in the context of a Metadata object and cannot be created separately from it, nor detached.
|
protectedvirtual |
This object can be destroyed only by the library that has created it.
|
pure virtual |
Adds a new attribute to the end of the list.
attrib | [in] A pointer to a MetaAttribute object. It is allowed to add a NULL item to the collection. Internally if the MetaAttribute object is not NULL it is retained, so it is safe to release it after this method returns. |
|
pure virtual |
Returns an attribute by index.
index | [in] A zero-based index. |
The caller is not required to release the returned object.
|
pure virtual |
Removes all attributes from the collection.
When removed from the collection each MetaAttribute object is released.
|
pure virtual |
Returns the number of attributes in the list.
|
pure virtual |
Inserts an attribute at the specified index in the list.
itemIndex | [in] The index in the collection where the new item shall be inserted. This must be a valid index in the collection. Indexing starts from 0. After the new item is inserted in the collection its index is the value of the itemIndex param. |
attrib | [in] A pointer to the MetaAttribute object that shall be inserted. It is allowed to insert a NULL value in the collection. Internally the new item is retained (if not NULL), so it is safe to release it after this method returns. |
|
pure virtual |
Returns an attribute by name.
name | [in] A pointer to the attribute name that is searched in the list. The name is an ANSI string. |
The caller is not required to release the returned object.
|
pure virtual |
Removes an attribute by index.
index | [in] A zero-based index of the attribute that shall be removed. When the MetaAttribute object is removed it is released. |
|
pure virtual |
Sets a new attribute at the specified index.
itemIndex | [in] The index in the collection where the new item shall be set. This must be a valid index in the collection. Indexing starts from 0. |
attrib | [in] A pointer to the MetaAttribute object that shall be set. It is allowed to set a NULL value to the collection. Internally the new item is retained (if not NULL), so it is safe to release it after this method returns. The old item is released (if not NULL). |