Wrapper around tool metadata.
#include <AlToolMetaData.h>
class AlToolMetaData : public AlObject
AlToolMetaData();
virtual ~AlToolMetaData();
virtual AlObject* copyWrapper() const;
virtual statusCode deleteObject();
virtual AlObjectType type() const;
statusCode reset();
int numItems() const;
const char* itemLabel( int i ) const;
const char* itemValue( int i ) const;
statusCode add( const char* label, const char* value );
statusCode replace( const char* label, const char* newValue );Constructor for AlToolMetaData class.
Destructor for AlToolMetaData class.
Returns an exact copy of the AlToolMetaData wrapper.
Deletes the AlToolMetaData wrapper.
sSuccess - the object was deleted
sInvalidObject - the locator was invalid
Returns the class identifier kMetaDataType.
Clear all the metadata entries.
Does not clear the title.
sInvalidObject - this wrapper is invalid.
sSuccess - reset was performed
Returns the number of meta data items. If this wrapper is invalid -1 will be
returned.
Returns the name of the meta data at location i. If i is no valid index,
nullptr is returned.
i - index of the metadata to get.
Returns the value of the meta data at location i. If i is no valid index,
nullptr is returned.
Add the given (label, value) pair to the metadata. If label exists, its value
will be updated.
If you want to only update existing entries, use AlToolMetaData::replace.
< label - label of the metadata pair
< value - value for the metadata pair
sInvalidObject - this wrapper is invalid
sSuccess - the metadata was added
Replace the given value for the item with the matching label. If no entry was found for label, no new one will be created.
< label - label of the metadata pair
< newValue - value to set for the existing label