Synergy Color Management Component - SDK -  2018.0.80
SYNCOLOR::Transform::ContentCallbacks Class Referenceabstract

Callback class for extracting color transform metadata. More...

Public Member Functions

virtual ~ContentCallbacks ()
 Destructor. More...
 
virtual void beginEntry (const char *type)=0
 Indicates the beginning of a new list of attributes. Could be that of the transform or of one of the color operators. More...
 
virtual void endEntry ()=0
 Indicates the end of an attribute list/. More...
 
virtual void haveAttribute (const char *tag, const char *value, bool isDynamic)=0
 Provides an attribute/value pair of metadata information. More...
 

Detailed Description

Callback class for extracting color transform metadata.

This class needs to be implemented to obtain metadata via Transform::extractContent(). Metadata content extraction begins with the metadata list of the transform proper first, followed by the metadata list of each color operator in order.

The result is a list of metadata entries with sublists for each operator. The callback calling sequence is as follows:

beginEntry("Transform")
haveAttribute("Transform attribute tag 1", "Transform attribute value 1", false)
haveAttribute("Transform attribute tag 2", "Transform attribute value 2", false)
...
    beginEntry("Operator 1")
    haveAttribute("Operator 1 attribute tag 1", "Operator 1 attribute value 1", false)
    ...
    endEntry()

    beginEntry("Operator 2")
    haveAttribute("Operator 2 attribute tag 1", "Operator 2 attribute value 1", false)
    ...
    endEntry()
...
endEntry()

Constructor & Destructor Documentation

virtual SYNCOLOR::Transform::ContentCallbacks::~ContentCallbacks ( )
virtual

Destructor.

Member Function Documentation

virtual void SYNCOLOR::Transform::ContentCallbacks::beginEntry ( const char *  type)
pure virtual

Indicates the beginning of a new list of attributes. Could be that of the transform or of one of the color operators.

Parameters
typeString expressing the type of list.
virtual void SYNCOLOR::Transform::ContentCallbacks::endEntry ( )
pure virtual

Indicates the end of an attribute list/.

virtual void SYNCOLOR::Transform::ContentCallbacks::haveAttribute ( const char *  tag,
const char *  value,
bool  isDynamic 
)
pure virtual

Provides an attribute/value pair of metadata information.

Parameters
tagAttribute name.
valueAttribute value.
isDynamicAttribute is dynamic.