From 7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 2 Feb 2013 16:58:42 +0000 Subject: More generic Atom class. git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5024 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/Controller.cpp | 2 +- src/engine/Edge.cpp | 2 +- src/engine/Node.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/engine') diff --git a/src/engine/Controller.cpp b/src/engine/Controller.cpp index 00ad9f9..c400043 100644 --- a/src/engine/Controller.cpp +++ b/src/engine/Controller.cpp @@ -41,7 +41,7 @@ Controller::create(const client::ClientObject& properties) { TimeDuration dur( _engine->machine()->time().unit(), - properties.get(URIs::instance().machina_duration).get_float()); + properties.get(URIs::instance().machina_duration).get()); SPtr node(new Node(dur)); SPtr obj( new client::ClientObject(properties, node->id())); diff --git a/src/engine/Edge.cpp b/src/engine/Edge.cpp index cc76e61..d1f8240 100644 --- a/src/engine/Edge.cpp +++ b/src/engine/Edge.cpp @@ -28,7 +28,7 @@ void Edge::set(URIInt key, const Raul::Atom& value) { if (key == URIs::instance().machina_probability) { - _probability.set(value.get_float()); + _probability.set(value.get()); } } diff --git a/src/engine/Node.cpp b/src/engine/Node.cpp index cf326a1..06317ef 100644 --- a/src/engine/Node.cpp +++ b/src/engine/Node.cpp @@ -227,7 +227,7 @@ Node::set(URIInt key, const Raul::Atom& value) if (key == URIs::instance().machina_initial) { std::cerr << "error: Attempt to change node initial state" << std::endl; } else if (key == URIs::instance().machina_selector) { - set_selector(value.get_bool()); + set_selector(value.get()); } } -- cgit v1.2.1