12345678910111213141516171819202122232425262728293031323334353637 |
- //
- // Created by robin on 8/9/15.
- //
-
- #ifndef PDNS_SLAVE_ACTION_H
- #define PDNS_SLAVE_ACTION_H
-
- #include <string>
- #include <memory>
- #include <vector>
-
- class AbstractSql;
-
- class Action
- {
- public:
- Action();
- virtual ~Action();
-
- const std::string getDhcpConf() const;
-
- virtual const std::string getSql(AbstractSql* sqlDb) const = 0;
-
- const std::string &getDomain() const;
-
- void setDomain(const std::string &domain);
-
- protected:
-
- virtual const std::string getDhcp() const;
-
- std::string _domain;
- };
-
- typedef std::vector<std::shared_ptr<Action>> Actions;
-
- #endif //PDNS_SLAVE_ACTION_H
|