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

PgDbMetaData.h

00001 /* hey emacs! -*- Mode: C++; c-file-style: "stroustrup"; indent-tabs-mode: nil -*- */
00002 /*
00003  * PgDbMetaData.h
00004  *   description goes here
00005  *
00006  * $Id: PgDbMetaData.h,v 1.4 2000/12/27 16:59:27 rex Exp $
00007  *
00008  * Copyright (c) 2000 Benoit Joly <benoit@ddts.org>
00009  *                and Remi Lefebvre <remi@dhis.net>
00010  *                and Luca Filipozzi <lfilipoz@dhis.net>
00011  *
00012  * DDT comes with ABSOLUTELY NO WARRANTY and is licenced under the
00013  * GNU General Public License (version 2 or later). This license
00014  * can be retrieved from http://www.gnu.org/copyleft/gnu.html.
00015  *
00016  */
00017 
00018 #ifndef PGDBMETADATA_H
00019 #define PGDBMETADATA_H
00020 
00021 #include "DbMetaData.h"
00022 #define DLLIMPORT
00023 #define HAVE_CXX_STRING_HEADER
00024 #define HAVE_NAMESPACE_STD
00025 #include <libpq++.h>
00026 #include <map>
00027 
00028 class PgDbMetaData : public DbMetaData
00029 {
00030   public:
00031     PgDbMetaData(PgDatabase &pgdb);
00032     ~PgDbMetaData();
00033 
00034   protected:
00035     class TypeContainer
00036     {
00037       public:
00038         TypeContainer();
00039         TypeContainer(eDataType type);
00040         TypeContainer(const char *typeName);
00041 
00042         eDataType type;
00043     };
00044 
00045     static void initTypes(PgDatabase &pgdb);
00046     void init(PgDatabase &pgdb);
00047 
00048     static map<int, TypeContainer> oidToEnum;
00049 };
00050 #endif // PGDBMETADATA_H

Generated on Tue Sep 13 01:32:47 2005 for DDT Project by  doxygen 1.4.4