diff options
Diffstat (limited to 'hscript/meta.hh')
-rw-r--r-- | hscript/meta.hh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/hscript/meta.hh b/hscript/meta.hh index 9491aac..626ce91 100644 --- a/hscript/meta.hh +++ b/hscript/meta.hh @@ -13,12 +13,23 @@ #ifndef __HSCRIPT_META_HH_ #define __HSCRIPT_META_HH_ +#include <string> #include "key.hh" namespace Horizon { namespace Keys { class Hostname : public Key { +private: + const std::string _name; + Hostname(int _line, const std::string my_name) : Key(_line), + _name(my_name) {} +public: + static Key *parseFromData(const std::string data, int lineno, int *errors, + int *warnings); + const std::string name() const { return this->_name; } + bool validate() const override; + bool execute() const override; }; class PkgInstall : public Key { |