aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine/machina
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/machina')
-rw-r--r--src/engine/machina/Edge.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/engine/machina/Edge.hpp b/src/engine/machina/Edge.hpp
index 8860abe..7f14788 100644
--- a/src/engine/machina/Edge.hpp
+++ b/src/engine/machina/Edge.hpp
@@ -23,6 +23,7 @@
#include <raul/WeakPtr.h>
#include <raul/SharedPtr.h>
#include <raul/DoubleBuffer.h>
+#include <raul/Stateful.h>
#include "types.hpp"
#include "Action.hpp"
@@ -30,7 +31,7 @@ namespace Machina {
class Node;
-class Edge : boost::noncopyable {
+class Edge : public Raul::Stateful, public boost::noncopyable {
public:
Edge(WeakPtr<Node> src, SharedPtr<Node> dst)
@@ -39,6 +40,8 @@ public:
, _dst(dst)
{}
+ void write_state(Raul::RDFWriter& writer);
+
WeakPtr<Node> src() { return _src; }
SharedPtr<Node> dst() { return _dst; }