DriverManager.h

Go to the documentation of this file.
00001 /*
00002  * $Id:DriverManager.h 540 2007-08-20 07:51:56Z mindstorm2600 $
00003  *
00004  * X-VR2 
00005  * 
00006  * Copyright (C) Juan V. Guerrero 2007
00007  * 
00008  * Juan V. Guerrero <mindstorm2600@users.sourceforge.net>
00009  * 
00010  * This program is free software, distributed under the terms of
00011  * the GNU General Public License Version 2. See the LICENSE file
00012  * at the top of the source tree.
00013  */
00014 #ifndef __XVR2_DB_DRIVER_MANAGER_H__
00015 #define __XVR2_DB_DRIVER_MANAGER_H__
00016 #include<xvr2/xvr2config.h>
00017 #include<xvr2/String.h>
00018 #include<xvr2/SQL/Driver.h>
00019 #include<xvr2/DSO.h>
00020 
00021 namespace xvr2 {
00022         namespace SQL {
00023 
00026                 class DriverManager : public Object {
00027                         private:
00028                         protected:
00029                                 DSO *dso;
00030                         public:
00031                                 DriverManager(const String &dsopath);
00032                                 ~DriverManager();
00033                                 Driver *load();
00034                                 //static BasicDriver *load(const String &dsofile);
00035                                 static Driver *load(DSO *dso_obj);
00036                                 void unload(Driver *drv);
00037                                 //static void destroy(BasicDriver *drv, const String &dsofile);
00038                                 static void unload(Driver *drv, DSO *dso_obj);
00039                 };
00040         };
00041 };
00042 
00043 #endif

Generated on Fri Jun 20 22:55:48 2008 for X-VR2 SDK by  doxygen 1.5.5