Hi Richard,

In general, the library does not provide functions for remove entries.
Not only in dictionary but in all structures, like named colors.

This was done on purpose, and the reason was the structures I'm using
to store data are not efficient for delete operations. Rather, it wold 
be easier to use a higher level structure tied to application behavior.

For example, in the case of dictionary metadata, a modern application 
would use std::vector or something similar that makes data access less
painful that pure C code. In such way, you can read all the dictionary 
by using the lcms function, organize this data in you own structure, 
probably in a way that the UI would understand better, and then, on
saving the profile, converting back to lcms structure. 

It may seem an overkill for small operations, but if you have the UI 
code already written, please take a look and you will probably find 
you are already using something like that for storing widget references 
or additionat UI data. 

Regards
Marti



Original Message:
-----------------
From: Richard Hughes hughsi...@gmail.com
Date: Thu, 13 Oct 2011 15:28:47 +0100
To: lcms-user@lists.sourceforge.net
Subject: [Lcms-user] cmsDictRemoveEntry


I've developed a tool called cd-fix-profile that I use in colord to
assign extra metadata to ICC profiles. Writing new DICT tags works
well, as does adding them, but *modifying* them seems painful. Because
there's no cmsDictRemoveEntry I have to load up a new hDict copying
the values from the old one.

Is this how I'm supposed to change metadata? Ideas welcome, thanks.

Richard.

----------------------------------------------------------------------------
--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user


--------------------------------------------------------------------
mail2web.com – What can On Demand Business Solutions do for you?
http://link.mail2web.com/Business/SharePoint



------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to