Synergy Color Management Component - SDK -  2018.0.80
SYNCOLOR::PolicyCollection Class Referenceabstract

A collection of policies. More...

Classes

struct  Visitor
 Callback interface for collection traversal. More...
 

Public Types

typedef SharedPtr
< PolicyCollection
Ptr
 A pointer to a PolicyCollection instance with shared ownership type. The instance is automatically destroyed once no Ptr points to it. More...
 

Public Member Functions

virtual ~PolicyCollection ()
 Destructor. More...
 
virtual SynStatus visit (Visitor &v) const =0
 Traverses the collection, calling Visitor 'v' for every policy. More...
 

Static Public Member Functions

static Ptr create (const URL::Ptr &dir)
 Creates PolicyCollection at location 'dir'. More...
 

Detailed Description

A collection of policies.

Member Typedef Documentation

A pointer to a PolicyCollection instance with shared ownership type. The instance is automatically destroyed once no Ptr points to it.

Constructor & Destructor Documentation

virtual SYNCOLOR::PolicyCollection::~PolicyCollection ( )
virtual

Destructor.

Releases all resources used by the PolicyCollection instance.

Member Function Documentation

static Ptr SYNCOLOR::PolicyCollection::create ( const URL::Ptr dir)
static

Creates PolicyCollection at location 'dir'.

Parameters
dirThe storage location of the created PolicyCollection instance.
Returns
A shared pointer to a PolicyCollection instance. Always succeeds if enough memory is available. Provides access via 'visit' to existing collection at 'dir' when applicable.
virtual SynStatus SYNCOLOR::PolicyCollection::visit ( Visitor v) const
pure virtual

Traverses the collection, calling Visitor 'v' for every policy.

Parameters
vA Visitor to handle each policy in the collection.
Returns
A SynStatus. Check the error code to determine if an error occurred.