HCE project C++ developers source code library  1.1.1
HCE project developer library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DataBaseDriverConfig.hpp
Go to the documentation of this file.
1 #ifndef DATA_BASE_DRIVER_CONFIG_HPP
2 #define DATA_BASE_DRIVER_CONFIG_HPP
3 
7 #include <iostream>
8 
9 #ifdef _USE_VOLDEMORT_DB_
10  #include "Voldemort.hpp"
11 #elif _USE_LEVEL_DB_
12  #include "LevelDB.hpp"
13 #elif _USE_AEROSPIKE_DB_
14  #include "Aerospike.hpp"
15 #endif
16 
17 namespace HCE {
18 
19 //<!
20 //<! class which contains data for connection with data base (voldemort, and so on..)
21 //<!
22 
24 public:
27 private:
28  static std::string driverName;
29 private:
30  std::string _driverName;
31  std::string _dbName;
32  std::string _dbUrl;
33 public:
34  void setDriverName (const std::string&);
35  void setDataBaseName (const std::string&);
36  void setDataBaseUrl (const std::string&);
37 public:
38  std::string getDriverName () const ;
39  std::string getDataBaseName () const;
40  std::string getDataBaseUrl () const;
41 };
42 
43 }
44 
45 #endif