X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=action.h;h=9b3c9276a105ab8366324c63839ffde92d34d70f;hb=13441470b3b895e08b4165e2154665863f1c3b33;hp=4550771568b6b7a73d7286db32751d147126042d;hpb=84d555cb9ab1ce1bce673393a83d67e99d555d33;p=popboot.git diff --git a/action.h b/action.h index 4550771..9b3c927 100644 --- a/action.h +++ b/action.h @@ -1,13 +1,25 @@ #ifndef __ACTION_H__ #define __ACTION_H__ +#include +#include + +typedef std::vector literals; + class Action { + public: + Action(std::string executable, literals preconditions, literals effects); + Action(const Action& action); + Action(){}; + const literals& effects() const; + const literals& preconditions() const; + const std::string& executable() const; + int execute() const; protected: - std::string executable; - std::vector preconditions; - std::vector effects; - + std::string _executable; + literals _preconditions; + literals _effects; }; #endif