summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-06-09 02:32:19 +0000
committerDavid Robillard <d@drobilla.net>2008-06-09 02:32:19 +0000
commit15cb25756c830a07382cb4a0ce4b82e22735df3d (patch)
tree7b61ccdd888861a55f35bf815a259af91b889a6c
parent2fc2d031a11b0a7ea6de48f7c20313c4b842a51d (diff)
downloadingen-15cb25756c830a07382cb4a0ce4b82e22735df3d.tar.gz
ingen-15cb25756c830a07382cb4a0ce4b82e22735df3d.tar.bz2
ingen-15cb25756c830a07382cb4a0ce4b82e22735df3d.zip
Serialiser cleanups.
git-svn-id: http://svn.drobilla.net/lad/ingen@1236 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/libs/serialisation/Serialiser.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/libs/serialisation/Serialiser.cpp b/src/libs/serialisation/Serialiser.cpp
index 36c73d2f..a81c76f6 100644
--- a/src/libs/serialisation/Serialiser.cpp
+++ b/src/libs/serialisation/Serialiser.cpp
@@ -154,15 +154,6 @@ Redland::Node
Serialiser::path_to_node_id(const Path& path)
{
assert(_model);
- /*string ret = path.substr(1);
-
- for (size_t i=0; i < ret.length(); ++i) {
- if (ret[i] == '/')
- ret[i] = '_';
- }
-
- return Redland::Node(Node::BLANK, ret);
- */
NodeMap::iterator i = _node_map.find(path);
if (i != _node_map.end()) {
@@ -423,6 +414,13 @@ Serialiser::serialise_connection(SharedPtr<Connection> connection) throw (std::l
const Redland::Node src_node = path_to_node_id(connection->src_port_path());
const Redland::Node dst_node = path_to_node_id(connection->dst_port_path());
+ /* This would allow associating data with the connection... */
+ /*const Redland::Node connection_node = _world.blank_id();
+ _model->add_statement(connection_node, "ingen:hasSource", src_node);
+ _model->add_statement(dst_node, "ingen:hasConnection", connection_node);
+ */
+
+ /* ... but this is cleaner */
_model->add_statement(dst_node, "ingen:connectedTo", src_node);
}