diff options
Diffstat (limited to 'common/action.h')
-rw-r--r-- | common/action.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/common/action.h b/common/action.h index 5099e03..bae22cf 100644 --- a/common/action.h +++ b/common/action.h @@ -2,6 +2,7 @@ #define ACTION_H #include <vector> +#include <boost/serialization/base_object.hpp> class Action { public: @@ -35,6 +36,16 @@ class Action { } }; -typedef std::vector<Action> Actions; +//! List of actions. +class Actions : public std::vector<Action> { + public: + //! Check if specified action is present in list. + bool contains(Action action); + + template<class Archive> + void serialize(Archive & ar, const unsigned int version) { + ar & boost::serialization::base_object<std::vector<Action> >(*this); + } +}; #endif |