CVS account request (C++ wrapper)

From: Date: Sat, 24 Nov 2007 23:33:51 +0000
Subject: CVS account request (C++ wrapper)
Groups: php.gd.devel 
Request: Send a blank email to php-gd-devel+get-283@lists.php.net to get a copy of this message
With regards to Pierre Joye's remarks of 20 Nov 2007, I would like to request a CVS account as kshepherd, if you decide that my help as a developer might be useful. I have submitted gd_io_stream.h, gd_io_stream.cxx, gdpp.h, gdpp.cxx via Feature request FS#131: http://bugs.libgd.org/?do=details&task_id=131 They greatly simplify the use of libgd in a C++ environment without incurring any overhead, and without impacting 'C' use ( by wrapping in __cplusplus ifdefs ) Thanks to Pierre Joye for his positive reception, and Torben Nielsen for his suggestions and enhancements, all of which have been added. Here is a summary if the discussion so far. > Comment by Pierre Joye (Pierre) - Friday, 16 November 2007, 02:56 > GMT-8 Hi Kevin!, > > Thanks for the patch, it is a useful addition and was asked many > times. > > On the same topic, I was wondering if we need a c++ binding, for the > complete GD API. Being not a c++ intensive user, I can hardly make the > right choices/decisions. Do you have an oppinion? Would it be useful? > > I added it to the 2.1.x, unless we decide to create a gd++. > > > Comment by Kevin Shepherd (kshepherd) - Friday, 16 November 2007, > 15:20 GMT-8 — Edit > One of the strengths of libgd is that it is very well structured. For > this reason a C++ binding is not especially important, as it would add > very little. libgd is already object based, so a C++ wrapper would be > trivial. > > ... > > The whole thing would probably be one header file and one source file. > It hardly seems to warrant a separate library. Perhaps the two files > could be included in libgd, wrapped with #ifdef __cplusplus inside so > as not to affect C only environments. > > If you are interested in this approach, I would be happy to submit a > complete version of the above outline, either attached to a message in > this forum, or checked in to CVS if you would like to add me to your > developer list. I have contributed to other open source projects in > the past, such as SGI's C++ Standard Template Library, and Sourceforge > OpenBabel. My full bio is at http://www.scarletline.com/ → > "About Us" > > > > Attached is a complete, tested version of a C++ wrapper for libgd. It > comes in two files, gdpp.h and gdpp.cxx > > // Example usage, convert png to gif: > #include <fstream> > #include <gdpp.h> > > std::ifstream in("image.png", std::ios_base::in | std::ios_base::binary ); > > GD::Image im(in); > > if (im.good()) > { > std::ofstream out("image.gif", std::ios_base::out | std::ios_base::binary ); > im.Gif(out); > } > > Comment by Pierre Joye (Pierre) - Tuesday, 20 November 2007, 12:53 > GMT-8 Thanks! > > You are too fast :) > > I will commit tomorrow to our development tree (head, which is the > 2.1.x branch). > > If you like to help us to maintain it and more generally to help us > with gd, please request a CVS account. I would be glad to count you as > one of our developers :) > > On the C++ areas, we may add more c++ code to the library. There is a > couple of features I like to add but they depend on either C++ > implementation or libraries, your expertise in c++ will be really > helpful. Let me know if you are interested, we can start a discussion > on our developer list (gd-devel@). > > Thanks again for your great work! >

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.gd.devel (#283) next »