From 360cff412ea44e86c8481e781c19d401724f4abb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 8 Sep 2007 01:17:49 +0000 Subject: Serialisation of patch enabled status. git-svn-id: http://svn.drobilla.net/lad/ingen@700 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Serializer.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libs/client') 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 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( -- cgit v1.2.1