KCMS CMM Developer's Guide

Saving a Profile to the Same Description

Saving a profile to the same description is the same as loading in reverse. Each object pointed to or contained within the KcsProfile object is instructed, with its own save mechanisms, to write the data needed to reconstruct itself out to static store. In this case, the description is identical to that used to load the profile, so the current KcsIO associated with the profile is used. Example 3-10 is a KCMS "C" API code excerpt that saves a profile to the same description.


Example 3-10 Saving a Profile to the Same Description

status

= KcsSaveProfile(profileid, NULL); if(status != KCS_SUCCESS) { 	status =

KcsGetLastError(&errDesc); 	printf("SaveProfile error: %s\n",

errDesc.desc); }