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.cpp
Go to the documentation of this file.
2 
3 #ifdef _USE_VOLDEMORT_DB_
4  std::string HCE::DataBaseDriverConfig::driverName = "VoldemortDB";
5 #elif _USE_LEVEL_DB_
6  std::string HCE::DataBaseDriverConfig::driverName = "LevelDB";
7 #elif _USE_AEROSPIKE_DB_
8  std::string HCE::DataBaseDriverConfig::driverName = "AerospikeDB";
9 #else
10  std::string HCE::DataBaseDriverConfig::driverName = "FakeDB";
11 #endif
12 
13 HCE::DataBaseDriverConfig::DataBaseDriverConfig ():_driverName(HCE::DataBaseDriverConfig::driverName),_dbName(""),_dbUrl("") {}
14 
16 
17 void HCE::DataBaseDriverConfig::setDriverName (const std::string& driverName) {
18  this->_driverName = driverName;
19 }
20 
21 void HCE::DataBaseDriverConfig::setDataBaseName (const std::string& dbName) {
22  this->_dbName = dbName;
23 }
24 
25 void HCE::DataBaseDriverConfig::setDataBaseUrl (const std::string& dbUrl) {
26  this->_dbUrl = dbUrl;
27 }
28 
30  return this->_driverName;
31 }
32 
34  return this->_dbName;
35 }
36 
38  return this->_dbUrl;
39 }