Hi
-
"utab" <> wrote in message
news: ups.com...
> Dear all,
>
> In programming terminology, what is a wrapper and where is it used?
Well for instance you could use a C++ wrapper class around regular C code.
For instance in my personal generic library I have a wrapper class around
the pnglib libary I can the open an ifstream of a .png file and read it with
operator>> or write png files with operator<<. This also works for memory
streams etc. The C++ wrapper takes care of memory allocation and freeing the
memory and of the complexity of setting the pointers to static members to
replace the standard C FILE oriented operations.
i.e. the complexity is inside the C++ wrapper class. The wrapper class
itself is extremely simple to use. Instead of looking in the manual of png
everytime I can now load and save png in a very simple way.
>
> Regards
>
Regards, Ron AF Greve
http://moonlit.xs4all.nl