Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

glib.h

Go to the documentation of this file.
00001 
00002 // Name:        glib.h
00003 // Author:      Joe Yates
00004 // Purpose:     GLib wrapper class
00005 // Created:     2005-11-06
00006 // Copyright:   (c) Joe Yates
00007 // License:     BSD license (see the file 'LICENSE.txt')
00009 
00010 #ifndef __wxGlib_h__
00011 #define __wxGlib_h__
00012 
00013 #include "wx/defs.h"
00014 #include "wx/dynlib.h"
00015 #include "wx/string.h"
00016 
00017 class wxGlib
00018   {
00019   public:
00020     // constructors
00021     wxGlib();
00022     ~wxGlib() {}
00023   
00024   // Methods
00025   public:
00026     // Memory Allocation
00027     void Free(void * pv) const;
00028 
00029   // Typedefs
00030   private:
00031     // Memory Allocation
00032     typedef void (* g_freeType)(gpointer mem);
00033 
00034   private:
00035     bool LoadGlib();
00036 
00037   private:
00038     bool              m_bLoaded;
00039     wxDynamicLibrary  libglib;
00040 
00041     // Function pointers
00042     g_freeType                    g_free;
00043   };
00044 
00045 #endif // ndef __wxGlib_h__

Generated on Wed Jan 25 08:13:09 2006 for Sherpa wxWidgets Classes by doxygen 1.3.6