Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

Action.h 608B

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // Created by robin on 8/9/15.
  3. //
  4. #ifndef PDNS_SLAVE_ACTION_H
  5. #define PDNS_SLAVE_ACTION_H
  6. #include <string>
  7. #include <memory>
  8. #include <vector>
  9. class AbstractSql;
  10. class Action
  11. {
  12. public:
  13. Action();
  14. virtual ~Action();
  15. const std::string getDhcpConf() const;
  16. virtual const std::string getSql(AbstractSql* sqlDb) const = 0;
  17. const std::string &getDomain() const;
  18. void setDomain(const std::string &domain);
  19. protected:
  20. virtual const std::string getDhcp() const;
  21. std::string _domain;
  22. };
  23. typedef std::vector<std::shared_ptr<Action>> Actions;
  24. #endif //PDNS_SLAVE_ACTION_H