KCMS CMM Developer's Guide

KcsProfile

KcsProfile objects are created from a static store which is a KcsIO object. KcsProfile objects are described using one of the types in the KcsProfileDesc structure which is defined in the kcstypes.h header file. Objects can read from and write to data in a static store. Examples of a static store include a file and memory. KcsProfile objects generated internally by the framework use a KcsMemoryBlock object.

The KcsProfile class static member function, createProfile() reads the CMM Id from the static store and generates a pointer to the KcsProfile derivative. The CMM Id is located at byte 4 in the ICC profile format. If the CMM Id has no associated runtime derivative, the default KcsProfile derivative, KcsProfileKCMS, is used.


Note -

The CMM Id must be in a set location in the file that is the same location as used by the ICC profile format. For details, see "ICC Profile Header".


The KcsProfile class contains a set of public member functions that correspond to the KCMS "C" API functions shown in the following table.

Table 3-1 Mapping of API Functions to KcsProfile Class Member Functions

KCMS API Function 

KcsProfile Member Functions

KcsLoadProfile()

load()

KcsSaveProfile()

save()

KcsSetAttribute()

setAttribute()

KcsGetAttribute()

getAttribute()

KcsConnectProfiles()

connect()

KcsEvaluate()

evaluate()

KcsUpdateProfile()

updateXforms()