HDK
|
#include <OpenColorTransforms.h>
Public Member Functions | |
virtual const char * | getElementName () const noexcept=0 |
virtual void | setElementName (const char *)=0 |
Name has to be a non-empty string. Top-level element can't be renamed. 'ROOT' is reserved. More... | |
virtual const char * | getElementValue () const noexcept=0 |
virtual void | setElementValue (const char *)=0 |
virtual int | getNumAttributes () const noexcept=0 |
virtual const char * | getAttributeName (int i) const noexcept=0 |
Get the name of a attribute ("" if attribute does not exist). More... | |
virtual const char * | getAttributeValue (int i) const noexcept=0 |
Get the value of a attribute ("" if attribute does not exist). More... | |
virtual const char * | getAttributeValue (const char *name) const noexcept=0 |
Get the value of a attribute of a given name ("" if attribute does not exist). More... | |
virtual void | addAttribute (const char *name, const char *value)=0 |
virtual int | getNumChildrenElements () const noexcept=0 |
virtual const FormatMetadata & | getChildElement (int i) const =0 |
virtual FormatMetadata & | getChildElement (int i)=0 |
virtual void | addChildElement (const char *name, const char *value)=0 |
virtual void | clear () noexcept=0 |
Remove all children, all attributes and the value. More... | |
virtual FormatMetadata & | operator= (const FormatMetadata &rhs)=0 |
virtual const char * | getName () const noexcept=0 |
virtual void | setName (const char *name) noexcept=0 |
virtual const char * | getID () const noexcept=0 |
virtual void | setID (const char *id) noexcept=0 |
FormatMetadata (const FormatMetadata &rhs)=delete | |
virtual | ~FormatMetadata ()=default |
Do not use (needed only for pybind11). More... | |
Protected Member Functions | |
FormatMetadata ()=default | |
The FormatMetadata class is intended to be a generic container to hold metadata from various file formats.
This class provides a hierarchical metadata container. A metadata object is similar to an element in XML. The top level element is named "ROOT" and can't be renamed. Several transforms have a FormatMetadata. The root element and all of the sub-elements may contain:
Definition at line 44 of file OpenColorTransforms.h.
|
delete |
|
virtualdefault |
Do not use (needed only for pybind11).
|
protecteddefault |
|
pure virtual |
Add an attribute with a given name and value. If an attribute with the same name already exists, its value is replaced. Throw if name is NULL or empty.
|
pure virtual |
Add a child element with a given name and value.
Name has to be non-empty. Value may be empty, particularly if this element will have children. Element is added after all existing children. Use getChildElement(getNumChildrenElements()-1) to access the added element.
|
pure virtualnoexcept |
Remove all children, all attributes and the value.
|
pure virtualnoexcept |
Get the name of a attribute ("" if attribute does not exist).
|
pure virtualnoexcept |
Get the value of a attribute ("" if attribute does not exist).
|
pure virtualnoexcept |
Get the value of a attribute of a given name ("" if attribute does not exist).
|
pure virtual |
Access a child element.
|
pure virtual |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Convenience method to easily get/set the 'id' attribute. This corresponds to the ProcessNode id attribute from a CLF/CTF file or the ColorCorrection id attribute from a CC/CCC/CDL file.
|
pure virtualnoexcept |
Convenience method to easily get/set the 'name' attribute. This corresponds to the ProcessNode name attribute from a CLF / CTF file or the name key of a transform in the config YAML.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
|
pure virtual |
Name has to be a non-empty string. Top-level element can't be renamed. 'ROOT' is reserved.