選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

SqlConfiguration.h 710B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. //
  2. // Created by robin on 8/8/15.
  3. //
  4. #ifndef PDNS_SLAVE_SQLCONFIGURATION_H
  5. #define PDNS_SLAVE_SQLCONFIGURATION_H
  6. # include <string>
  7. class SqlConfiguration
  8. {
  9. public:
  10. SqlConfiguration();
  11. const std::string &getHost() const;
  12. void setHost(const std::string &host);
  13. const std::string &getUser() const;
  14. void setUser(const std::string &user);
  15. const std::string &getPassword() const;
  16. void setPassword(const std::string &passwd);
  17. const std::string &getDatabase() const;
  18. void setDatabase(const std::string &database);
  19. private:
  20. std::string _host;
  21. std::string _user;
  22. std::string _password;
  23. std::string _database;
  24. };
  25. #endif //PDNS_SLAVE_SQLCONFIGURATION_H