Re: Properties for the GR_Graphics?

From: Hubert Figuiere <hfiguiere_at_teaser.fr>
Date: Wed May 02 2007 - 04:27:05 CEST

Martin Sevior wrote:
> Great minds think alike. The interface is char **, ie an array of char
> *'s so we can hold a variety of name-value pairs terminated by a NULL.
>
> eg
>
> char ** properties={"hyperlink","http://www.abiwource.com",
> "bookmark","HAWYF",
> "page-transition","flip-vertical",
> NULL, NULL}

Martin,

I have to disagree with you and agree with Leonard.

Using a hashmap-style (even a std::map<std::string,std::string> but that
is a detail) brings lot of benefit:

-you can access by key
-you can interate linearly too
-it takes care of the resource handling.
etc.

Time to modernize a bit AbiWord.

Hub
Received on Wed May 2 04:26:17 2007

This archive was generated by hypermail 2.1.8 : Wed May 02 2007 - 04:26:17 CEST