diff options
author | David Robillard <d@drobilla.net> | 2007-09-19 20:21:12 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-09-19 20:21:12 +0000 |
commit | a054212abbdb26e03ca42c91d0c86819d445bc5f (patch) | |
tree | e141854bfdd44729f66b6a29a3b81936daac0edf /src/libs/client | |
parent | 3cec9fedc575aab5a3d625fc1de7649551b9531e (diff) | |
download | ingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.tar.gz ingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.tar.bz2 ingen-a054212abbdb26e03ca42c91d0c86819d445bc5f.zip |
Fix various serialization problems.
git-svn-id: http://svn.drobilla.net/lad/ingen@731 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/Serializer.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp index bfcdc51c..d3d3abfd 100644 --- a/src/libs/client/Serializer.cpp +++ b/src/libs/client/Serializer.cpp @@ -337,7 +337,7 @@ Serializer::serialize_node(SharedPtr<NodeModel> node, const Node& node_id) _model->add_statement( node_id, "rdf:type", - "ingen:Node"); + Node(_model->world(), Node::RESOURCE, "ingen:Node")); _model->add_statement( node_id, @@ -348,6 +348,11 @@ Serializer::serialize_node(SharedPtr<NodeModel> node, const Node& node_id) node_id, "ingen:plugin", plugin_id); + + _model->add_statement( + node_id, + "ingen:polyphonic", + node->polyphonic()); //serialize_plugin(node->plugin()); @@ -380,9 +385,11 @@ void Serializer::serialize_port(SharedPtr<PortModel> port, const Node& port_id) { if (port->is_input()) - _model->add_statement(port_id, "rdf:type", "ingen:InputPort"); + _model->add_statement(port_id, "rdf:type", + Node(_model->world(), Node::RESOURCE, "ingen:InputPort")); else - _model->add_statement(port_id, "rdf:type", "ingen:OutputPort"); + _model->add_statement(port_id, "rdf:type", + Node(_model->world(), Node::RESOURCE, "ingen:OutputPort")); _model->add_statement(port_id, "ingen:name", Atom(port->path().name().c_str())); |