Main Page | Class Hierarchy | Class List | File List | Class Members | Related Pages

dao/src/PGConnection.h

00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003 K-10 Distributed Processing - Lium, Le Mans
00004 Copyright (C) 2006
00005 
00006 This program is free software; you can redistribute it and/or
00007 modify it under the terms of the GNU General Public License
00008 as published by the Free Software Foundation; either version 2
00009 of the License, or (at your option) any later version.
00010 
00011 This program is distributed in the hope that it will be useful,
00012 but WITHOUT ANY WARRANTY; without even the implied warranty of
00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014 GNU General Public License for more details.
00015 
00016 You should have received a copy of the GNU General Public License
00017 along with this program; if not, write to the Free Software
00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00019 */
00020 
00021 #ifndef PGCONNECTION_H
00022 #define PGCONNECTION_H
00023 
00024 #include "Connection.h"
00025 #include <string>
00026 #include <libpq-fe.h>
00027 #include <stdio.h>
00028 #include <stdlib.h>
00029 #include <list>
00030 #include <map>
00031 #include <iostream>
00032 
00033 using namespace std;
00034 
00046 class PGConnection:public Connection
00047 {
00048 private:
00052  PGconn * mConnec;
00053 public:
00058  PGConnection(){}
00063  ~PGConnection(){}
00069  void connect(string aString);
00076  list<list<string> > executeQuery(string aQuery);
00083  int executeUpdate(string aQuery);
00088  void closeConnection();
00089 };
00090 #endif

Generated on Fri May 19 22:56:55 2006 for k10-controller by  doxygen 1.4.4