db_bridge/include/abstract_db.h
changeset 65 76514757b0d6
parent 64 993b97c4ad2d
child 66 2b4f786d9073
equal deleted inserted replaced
64:993b97c4ad2d 65:76514757b0d6
     1 /**
       
     2  * db_bridge/include/abstract_db.h
       
     3  * Copyright 2008 (C) Markus Broeker
       
     4  */
       
     5 
       
     6 #ifndef ABSTRACT_DB_H
       
     7 #define ABSTRACT_DB_H
       
     8 
       
     9 #include <vector>
       
    10 #include <string>
       
    11 
       
    12 class Abstract_DB {
       
    13   protected:
       
    14     std::string user;
       
    15     std::string database;
       
    16     std::string password;
       
    17     std::string server;
       
    18 
       
    19   public:
       
    20     typedef std::vector <std::vector <std::string> >DB_RESULT;
       
    21     typedef std::vector <std::string> DB_ROW;
       
    22 
       
    23     virtual bool connect () = 0;
       
    24     virtual DB_RESULT query (std::string) = 0;
       
    25 };
       
    26 #endif