aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Action.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/Action.hpp')
-rw-r--r--src/engine/Action.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/engine/Action.hpp b/src/engine/Action.hpp
index 7469f7e..7e0cc4f 100644
--- a/src/engine/Action.hpp
+++ b/src/engine/Action.hpp
@@ -21,20 +21,21 @@
#include <string>
#include <iostream>
-#include "raul/MIDISink.hpp"
#include "raul/SharedPtr.hpp"
#include "raul/TimeSlice.hpp"
+#include "raul/Manageable.hpp"
#include "machina/types.hpp"
+#include "MIDISink.hpp"
#include "Stateful.hpp"
namespace Machina {
/** An Action, executed on entering or exiting of a state.
*/
-struct Action : public Raul::Deletable, public Stateful {
- virtual void execute(SharedPtr<Raul::MIDISink> sink, Raul::TimeStamp time) = 0;
+struct Action : public Raul::Manageable, public Stateful {
+ virtual void execute(SharedPtr<MIDISink> sink, Raul::TimeStamp time) = 0;
virtual void write_state(Sord::Model& model);
};
@@ -43,7 +44,7 @@ class PrintAction : public Action {
public:
PrintAction(const std::string& msg) : _msg(msg) {}
- void execute(SharedPtr<Raul::MIDISink>, Raul::TimeStamp time)
+ void execute(SharedPtr<MIDISink>, Raul::TimeStamp time)
{ std::cout << "t=" << time << ": " << _msg << std::endl; }
private: