aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2013-02-02 16:58:42 +0000
committerDavid Robillard <d@drobilla.net>2013-02-02 16:58:42 +0000
commit7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0 (patch)
tree4da5d9891020c49dd32cfc1539c15de8fb2f5d0f /src/engine
parent277164fd43de165ab559224d6f9218f9121e612f (diff)
downloadmachina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.tar.gz
machina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.tar.bz2
machina-7fdaffdbf9ac644c4bd4561dddd1a32db4118bc0.zip
More generic Atom class.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@5024 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/Controller.cpp2
-rw-r--r--src/engine/Edge.cpp2
-rw-r--r--src/engine/Node.cpp2
3 files changed, 3 insertions, 3 deletions
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<float>());
SPtr<Node> node(new Node(dur));
SPtr<client::ClientObject> 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<float>());
}
}
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<int32_t>());
}
}