summaryrefslogtreecommitdiffstats
path: root/src/serialisation/Serialiser.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-16 13:19:39 +0000
committerDavid Robillard <d@drobilla.net>2012-08-16 13:19:39 +0000
commita42744e1068a8630d8034df73bb344ca21a53b32 (patch)
tree9ac34a22eba94f99536eb3e153813487a6ecb79b /src/serialisation/Serialiser.cpp
parent3649db06a9fa53f3dc7cf5a5115cdc0b6cfd695a (diff)
downloadingen-a42744e1068a8630d8034df73bb344ca21a53b32.tar.gz
ingen-a42744e1068a8630d8034df73bb344ca21a53b32.tar.bz2
ingen-a42744e1068a8630d8034df73bb344ca21a53b32.zip
Remove all 'using namespace Raul'.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4715 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/serialisation/Serialiser.cpp')
-rw-r--r--src/serialisation/Serialiser.cpp17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/serialisation/Serialiser.cpp b/src/serialisation/Serialiser.cpp
index cff178d6..c8ee42c0 100644
--- a/src/serialisation/Serialiser.cpp
+++ b/src/serialisation/Serialiser.cpp
@@ -46,7 +46,6 @@
#define LOG(s) s << "[Serialiser] "
using namespace std;
-using namespace Raul;
using namespace Sord;
using namespace Ingen;
@@ -187,7 +186,7 @@ Serialiser::Impl::write_bundle(SharedPtr<const GraphObject> patch,
const string root_file = Glib::build_filename(path, symbol + ".ttl");
start_to_filename(root_file);
- const Path old_root_path = _root_path;
+ const Raul::Path old_root_path = _root_path;
_root_path = patch->path();
serialise_patch(patch, Sord::URI(_model->world(), root_file, _base_uri));
_root_path = old_root_path;
@@ -255,8 +254,8 @@ Serialiser::Impl::finish()
if (_mode == TO_FILE) {
SerdStatus st = _model->write_to_file(_base_uri, SERD_TURTLE);
if (st) {
- LOG(error) << "Error writing file `" << _base_uri << "' ("
- << serd_strerror(st) << ")" << std::endl;
+ LOG(Raul::error) << "Error writing file `" << _base_uri << "' ("
+ << serd_strerror(st) << ")" << std::endl;
}
} else {
ret = _model->write_to_string(_base_uri, SERD_TURTLE);
@@ -270,7 +269,7 @@ Serialiser::Impl::finish()
}
Sord::Node
-Serialiser::Impl::path_rdf_node(const Path& path)
+Serialiser::Impl::path_rdf_node(const Raul::Path& path)
{
assert(_model);
assert(path == _root_path || path.is_child_of(_root_path));
@@ -296,8 +295,8 @@ Serialiser::serialise(SharedPtr<const GraphObject> object) throw (std::logic_err
Resource::DEFAULT,
me->path_rdf_node(object->path()));
} else {
- LOG(warn) << "Unsupported object type, "
- << object->path() << " not serialised." << endl;
+ LOG(Raul::warn) << "Unsupported object type, "
+ << object->path() << " not serialised." << endl;
}
}
@@ -331,10 +330,10 @@ Serialiser::Impl::serialise_patch(SharedPtr<const GraphObject> patch,
GraphObject::Properties::const_iterator s = patch->properties().find(uris.lv2_symbol);
if (s == patch->properties().end()
|| !s->second.type() == _world.forge().String
- || !Symbol::is_valid(s->second.get_string())) {
+ || !Raul::Symbol::is_valid(s->second.get_string())) {
const std::string base = Glib::path_get_basename(
_model->base_uri().to_c_string());
- symbol = Symbol::symbolify(base.substr(0, base.find('.')));
+ symbol = Raul::Symbol::symbolify(base.substr(0, base.find('.')));
_model->add_statement(
patch_id,
Sord::Curie(world, "lv2:symbol"),