summaryrefslogtreecommitdiffstats
path: root/src/libs/client
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-08 01:17:49 +0000
committerDavid Robillard <d@drobilla.net>2007-09-08 01:17:49 +0000
commit360cff412ea44e86c8481e781c19d401724f4abb (patch)
tree5a1f3fd846577715d63a031f1bed03fbc767b5e6 /src/libs/client
parenta8c5598add06e2a413d06dbccb61708d164959b5 (diff)
downloadingen-360cff412ea44e86c8481e781c19d401724f4abb.tar.gz
ingen-360cff412ea44e86c8481e781c19d401724f4abb.tar.bz2
ingen-360cff412ea44e86c8481e781c19d401724f4abb.zip
Serialisation of patch enabled status.
git-svn-id: http://svn.drobilla.net/lad/ingen@700 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r--src/libs/client/Serializer.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libs/client/Serializer.cpp b/src/libs/client/Serializer.cpp
index 035ff0ba..bfcdc51c 100644
--- a/src/libs/client/Serializer.cpp
+++ b/src/libs/client/Serializer.cpp
@@ -247,10 +247,8 @@ Serializer::patch_path_to_rdf_id(const Path& path)
return Node(_model->world(), Node::RESOURCE, _base_uri);
} else {
assert(path.length() > _root_object->path().length());
- const Node ret(_model->world(), Node::RESOURCE,
+ return Node(_model->world(), Node::RESOURCE,
_base_uri + string("#") + path.substr(_root_object->path().length()));
- cerr << "RDF ID: " << path << " -> " << ret.to_string() << endl;
- return ret;
}
}
@@ -278,6 +276,11 @@ Serializer::serialize_patch(SharedPtr<PatchModel> patch)
"ingen:polyphony",
Atom((int)patch->poly()));
+ _model->add_statement(
+ patch_id,
+ "ingen:enabled",
+ Atom(patch->enabled()));
+
for (MetadataMap::const_iterator m = patch->metadata().begin(); m != patch->metadata().end(); ++m) {
if (m->first.find(":") != string::npos) {
_model->add_statement(