]> ruin.nu Git - popboot.git/blobdiff - action.h
Might be good to have a destructor too
[popboot.git] / action.h
index 60206a391c76119853c3beaf9fbde219f2f284c8..9b3c9276a105ab8366324c63839ffde92d34d70f 100644 (file)
--- a/action.h
+++ b/action.h
@@ -1,13 +1,19 @@
 #ifndef __ACTION_H__
 #define __ACTION_H__
 
-typedef literals std::vector<string>;
+#include <vector>
+#include <string>
+
+typedef std::vector<std::string> literals;
 
 class Action {
        public:
                Action(std::string executable, literals preconditions, literals effects);
-               const literals effects() const;
-               const literals preconditions() const;
+               Action(const Action& action);
+               Action(){};
+               const literals& effects() const;
+               const literals& preconditions() const;
+               const std::string& executable() const;
                int execute() const;
 
        protected: