You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PdnsSlave.h 682B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // Created by robin on 8/8/15.
  3. //
  4. #ifndef PDNS_SLAVE_PDNSSLAVE_H
  5. #define PDNS_SLAVE_PDNSSLAVE_H
  6. # include <string>
  7. # include <memory>
  8. # include "DBO/SqlConfiguration.h"
  9. # include "DBO/Actions/Action.h"
  10. class PdnsSlave
  11. {
  12. public:
  13. PdnsSlave(const std::string& filePath);
  14. BResult readConfig();
  15. BResult readDhcpdTemplate();
  16. Result<Actions> readHosts();
  17. private:
  18. std::string _filePath;
  19. std::string _dhcpdFilePath;
  20. std::string _dhcpdTemplatePath;
  21. std::string _hostsPath;
  22. SqlConfiguration _masterConfig;
  23. SqlConfiguration _slaveConfig;
  24. std::string _dhcpdTemplateContent;
  25. Actions _actions;
  26. };
  27. #endif //PDNS_SLAVE_PDNSSLAVE_H