Logo Search packages:      
Sourcecode: dbbalancer version File versions

DBHostConfig.hh

#include <string>

class DBHostConfig {

public:

  DBHostConfig() {
   _name = "default";
   _dbName = "postgres";
   _port= 5432;
   _dbUser="postgres";
   _dbPassword="postgres";
  };

  string getName() { return _name; };
  string getDbName() { return _dbName; };
  unsigned int getPort() { return _port; };
  string getDbUser() { return _dbUser; };
  string getDbPassword() { return _dbPassword; };  

  void setName(string name) { _name = name; };
  void setDbName(string dbName) { _dbName = dbName; };
  void setPort(unsigned int port) { _port = port; };
  void setDbUser(string dbUser) { _dbUser = dbUser; };
  void setDbPassword(string dbPassword) { _dbPassword = dbPassword; };

private:

  string _name;
  string _dbName;
  unsigned int _port;
  string _dbUser;
  string _dbPassword;

};

Generated by  Doxygen 1.6.0   Back to index