diff options
author | David Robillard <d@drobilla.net> | 2007-03-02 00:05:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-02 00:05:18 +0000 |
commit | 19b537a142c127dd2c1d9a40a7999714f9d2175d (patch) | |
tree | 85d7da2a138e34ca5783dffbc6547fd4500ca7ca /src/engine/machina | |
parent | de25ae35ccb0613290ba20bfcf0ea15476c26ed5 (diff) | |
download | machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.tar.gz machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.tar.bz2 machina-19b537a142c127dd2c1d9a40a7999714f9d2175d.zip |
Work towards Action serialization.
Made edge length in dot graphs (from machina2dot) correspond to node duration
to make automaton diagram map closer to music notation.
git-svn-id: http://svn.drobilla.net/lad/machina@341 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/machina')
-rw-r--r-- | src/engine/machina/Action.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/machina/Action.hpp b/src/engine/machina/Action.hpp index 2bffaa3..16c9b58 100644 --- a/src/engine/machina/Action.hpp +++ b/src/engine/machina/Action.hpp @@ -22,6 +22,7 @@ #include <iostream> #include <raul/Deletable.h> #include <raul/TimeSlice.h> +#include <raul/Stateful.h> #include "types.hpp" namespace Machina { @@ -29,8 +30,10 @@ namespace Machina { /** An Action, executed on entering or exiting of a state. */ -struct Action : public Raul::Deletable { +struct Action : public Raul::Deletable, public Raul::Stateful { virtual void execute(Raul::BeatTime /*time*/) {} + + virtual void write_state(Raul::RDFWriter& writer); }; |