db_bridge/include/abstract_db.h
changeset 12 9f0ce4eaa1ce
child 13 2640a7fd96ca
equal deleted inserted replaced
11:0a8be4eac87e 12:9f0ce4eaa1ce
       
     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     virtual ~ Abstract_DB () {
       
    21     };
       
    22     virtual bool connect () = 0;
       
    23     virtual std::vector < std::vector<std::string> >query (std::string) = 0;
       
    24 };
       
    25 #endif