aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/Action.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-01-12 03:17:47 +0000
committerDavid Robillard <d@drobilla.net>2013-01-12 03:17:47 +0000
commite1a63732f796c8057751cb7f8ac98a595b91692e (patch)
tree764392d055901118ee285dd20f233ff33e0cd04a /src/engine/Action.hpp
parentbb62bf2c23ba84f547e37b70b3ef31b51ba987ab (diff)
downloadmachina-e1a63732f796c8057751cb7f8ac98a595b91692e.tar.gz
machina-e1a63732f796c8057751cb7f8ac98a595b91692e.tar.bz2
machina-e1a63732f796c8057751cb7f8ac98a595b91692e.zip
Bulk reformat.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4929 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/Action.hpp')
-rw-r--r--src/engine/Action.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/engine/Action.hpp b/src/engine/Action.hpp
index 76834d9..f954a39 100644
--- a/src/engine/Action.hpp
+++ b/src/engine/Action.hpp
@@ -34,15 +34,20 @@ namespace Machina {
/** An Action, executed on entering or exiting of a state.
*/
-struct Action : public Raul::Manageable, public Stateful {
+struct Action
+ : public Raul::Manageable
+ , public Stateful {
virtual void execute(MIDISink* sink, Raul::TimeStamp time) = 0;
virtual void write_state(Sord::Model& model);
};
-class PrintAction : public Action {
+class PrintAction
+ : public Action
+{
public:
- PrintAction(const std::string& msg) : _msg(msg) {}
+ PrintAction(const std::string& msg)
+ : _msg(msg) {}
void execute(MIDISink* sink, Raul::TimeStamp time)
{ std::cout << "t=" << time << ": " << _msg << std::endl; }