|
Main Page
Class Hierarchy
Alphabetical List
Compound List
File List
Compound Members
|
00001 /********************************************************************************
00002 * *
00003 * Database instance creator object *
00004 * *
00005 *********************************************************************************
00006 * Copyright (C) 2003 by Mathew Robertson. All Rights Reserved. *
00007 *********************************************************************************
00008 * This library is free software; you can redistribute it and/or *
00009 * modify it under the terms of the GNU Lesser General Public *
00010 * License as published by the Free Software Foundation; either *
00011 * version 2.1 of the License, or (at your option) any later version. *
00012 * *
00013 * This library is distributed in the hope that it will be useful, *
00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
00016 * Lesser General Public License for more details. *
00017 * *
00018 * You should have received a copy of the GNU Lesser General Public *
00019 * License along with this library; if not, write to the Free Software *
00020 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
00021 *********************************************************************************/
00022 #ifndef FXDATABASEMANAGER_H
00023 #define FXDATABASEMANAGER_H
00024
00025 namespace FXEX {
00026 class FXDatabaseInterface;
00027
00028 /**
00029 * This class is a nice and simple class which just supplies the user
00030 * with a list of the available database source types. It then allows
00031 * you to ask it for a handle to an instance which you then set some
00032 * parameters on, then call create().
00033 *
00034 * Note:
00035 * 1. in the future this may use or inherit-from FXDLL so that we
00036 * can dynamically load the various database sources.
00037 *
00038 * 2. this is a class rather than a namespace since, it then allows
00039 * programmers to make an object out of it...
00040 */
00041 class FXAPI FXDatabaseManager {
00042 public:
00043 /// returns a list of available database sources
00044 static FXStringList getSources();
00045
00046 /// get a specific database source, by name
00047 static FXDatabaseInterface* getSource(const FXString& source);
00048
00049 /// delete a database source,
00050 static void deleteSource(FXDatabaseInterface **dbi);
00051 };
00052
00053 } // namespace FXEX
00054 #endif // FXDATABASEMANAGER_H