From 8ba6bb943889bfdd58cf4a971a152041c1199cfe Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Apr 2011 12:47:15 +0000 Subject: Put engine code in new Ingen::Engine namespace. Put core interfaces in Ingen namespace (not Ingen::Shared). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3159 a436a847-0d15-0410-975c-d299462d15a1 --- src/serialisation/Serialiser.cpp | 48 ++++++++++++++++++++-------------------- 1 file changed, 24 insertions(+), 24 deletions(-) (limited to 'src/serialisation/Serialiser.cpp') diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp index 8b42de34..37d80e0d 100644 --- a/src/serialisation/Serialiser.cpp +++ b/src/serialisation/Serialiser.cpp @@ -76,8 +76,8 @@ Serialiser::Serialiser(Shared::World& world, SharedPtr store) } void -Serialiser::to_file(SharedPtr object, - const std::string& filename) +Serialiser::to_file(SharedPtr object, + const std::string& filename) { _root_path = object->path(); start_to_filename(filename); @@ -95,9 +95,9 @@ uri_to_symbol(const std::string& uri) } void -Serialiser::write_manifest(const std::string& bundle_path, - SharedPtr patch, - const std::string& patch_symbol) +Serialiser::write_manifest(const std::string& bundle_path, + SharedPtr patch, + const std::string& patch_symbol) { const string manifest_path(Glib::build_filename(bundle_path, "manifest.ttl")); const string binary_path(Glib::Module::build_path("", "ingen_lv2")); @@ -146,8 +146,8 @@ normal_bundle_uri(const std::string& uri) } void -Serialiser::write_bundle(SharedPtr patch, - const std::string& uri) +Serialiser::write_bundle(SharedPtr patch, + const std::string& uri) { Glib::ustring path = ""; try { @@ -158,7 +158,7 @@ Serialiser::write_bundle(SharedPtr patch, } if (Glib::file_test(path, Glib::FILE_TEST_EXISTS) - && !Glib::file_test(path, Glib::FILE_TEST_IS_DIR)) { + && !Glib::file_test(path, Glib::FILE_TEST_IS_DIR)) { path = Glib::path_get_dirname(path); } @@ -277,21 +277,21 @@ Serialiser::serialise(SharedPtr object) throw (std::logic_error) if (!_model) throw std::logic_error("serialise called without serialization in progress"); - SharedPtr patch = PtrCast(object); + SharedPtr patch = PtrCast(object); if (patch) { const Sord::URI patch_id(_model->world(), ""); serialise_patch(patch, patch_id); return; } - SharedPtr node = PtrCast(object); + SharedPtr node = PtrCast(object); if (node) { const Sord::URI plugin_id(_model->world(), node->plugin()->uri().str()); serialise_node(node, plugin_id, path_rdf_node(node->path())); return; } - SharedPtr port = PtrCast(object); + SharedPtr port = PtrCast(object); if (port) { serialise_port(port.get(), Resource::DEFAULT, path_rdf_node(port->path())); return; @@ -302,7 +302,7 @@ Serialiser::serialise(SharedPtr object) throw (std::logic_error) } void -Serialiser::serialise_patch(SharedPtr patch, const Sord::Node& patch_id) +Serialiser::serialise_patch(SharedPtr patch, const Sord::Node& patch_id) { assert(_model); Sord::World& world = _model->world(); @@ -348,8 +348,8 @@ Serialiser::serialise_patch(SharedPtr patch, const Sord::Node& pa if (n->first.parent() != patch->path()) continue; - SharedPtr subpatch = PtrCast(n->second); - SharedPtr node = PtrCast(n->second); + SharedPtr subpatch = PtrCast(n->second); + SharedPtr node = PtrCast(n->second); if (subpatch) { SerdURI base_uri; serd_uri_parse((const uint8_t*)_base_uri.c_str(), &base_uri); @@ -406,16 +406,16 @@ Serialiser::serialise_patch(SharedPtr patch, const Sord::Node& pa serialise_port(p, Resource::INTERNAL, port_id); } - for (Shared::Patch::Connections::const_iterator c = patch->connections().begin(); + for (Patch::Connections::const_iterator c = patch->connections().begin(); c != patch->connections().end(); ++c) { serialise_connection(patch_id, c->second); } } void -Serialiser::serialise_node(SharedPtr node, - const Sord::Node& class_id, - const Sord::Node& node_id) +Serialiser::serialise_node(SharedPtr node, + const Sord::Node& class_id, + const Sord::Node& node_id) { _model->add_statement(node_id, Sord::Curie(_model->world(), "rdf:type"), @@ -440,9 +440,9 @@ Serialiser::serialise_node(SharedPtr node, } void -Serialiser::serialise_port(const Port* port, - Shared::Resource::Graph context, - const Sord::Node& port_id) +Serialiser::serialise_port(const Port* port, + Resource::Graph context, + const Sord::Node& port_id) { Sord::World& world = _model->world(); @@ -522,9 +522,9 @@ skip_property(const Sord::Node& predicate) } void -Serialiser::serialise_properties(const Shared::GraphObject* o, - Shared::Resource::Graph context, - Sord::Node id) +Serialiser::serialise_properties(const GraphObject* o, + Ingen::Resource::Graph context, + Sord::Node id) { const GraphObject::Properties props = o->properties(context); -- cgit v1.2.1