# pragma once # include # include "proto.hh" # include "action.hh" # include "tag_action.hh" namespace Astroid { class DiffTagAction : public TagAction { public: DiffTagAction (std::vector>, std::vector add, std::vector rem); static DiffTagAction * create (std::vector>, ustring); virtual bool doit (Db *) override; virtual bool undo (Db *) override; private: struct TaggableAction { refptr taggable; std::vector add; std::vector remove; }; std::vector taggable_actions; }; }