From 3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 4 Mar 2010 03:52:08 +0000 Subject: Remove Raul::Path::root, Raul::Path::prefix, and Raul:Path::scheme from public API. Add ability to modify root path from application code (before any paths are created). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2514 a436a847-0d15-0410-975c-d299462d15a1 --- src/engine/GraphObjectImpl.cpp | 2 +- src/engine/HTTPEngineReceiver.cpp | 2 +- src/engine/events/RequestMetadata.cpp | 2 +- src/engine/events/SetMetadata.cpp | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/engine') diff --git a/src/engine/GraphObjectImpl.cpp b/src/engine/GraphObjectImpl.cpp index b9c8100c..d67755b5 100644 --- a/src/engine/GraphObjectImpl.cpp +++ b/src/engine/GraphObjectImpl.cpp @@ -29,7 +29,7 @@ using namespace Shared; GraphObjectImpl::GraphObjectImpl(GraphObjectImpl* parent, const Symbol& symbol) - : ResourceImpl(parent ? parent->path().child(symbol) : Raul::Path::root.child(symbol)) + : ResourceImpl(parent ? parent->path().child(symbol) : Raul::Path::root()) , _parent(parent) , _path(parent ? parent->path().child(symbol) : "/") , _symbol(symbol) diff --git a/src/engine/HTTPEngineReceiver.cpp b/src/engine/HTTPEngineReceiver.cpp index 0c9efcf2..662b23eb 100644 --- a/src/engine/HTTPEngineReceiver.cpp +++ b/src/engine/HTTPEngineReceiver.cpp @@ -117,7 +117,7 @@ HTTPEngineReceiver::message_callback(SoupServer* server, SoupMessage* msg, const // Special GET paths if (msg->method == SOUP_METHOD_GET) { - if (path == Path::root.str() || path.empty()) { + if (path == Path::root().str() || path.empty()) { const string r = string("@prefix rdfs: .\n") .append("\n<> rdfs:seeAlso ;") .append("\n rdfs:seeAlso ;") diff --git a/src/engine/events/RequestMetadata.cpp b/src/engine/events/RequestMetadata.cpp index 4d879298..69c5b271 100644 --- a/src/engine/events/RequestMetadata.cpp +++ b/src/engine/events/RequestMetadata.cpp @@ -59,7 +59,7 @@ RequestMetadata::RequestMetadata(Engine& engine, void RequestMetadata::pre_process() { - const bool is_object = (_uri.scheme() == Path::scheme && Path::is_valid(_uri.str())); + const bool is_object = Path::is_path(_uri); if (_request->client()) { if (is_object) _resource = _engine.engine_store()->find_object(Path(_uri.str())); diff --git a/src/engine/events/SetMetadata.cpp b/src/engine/events/SetMetadata.cpp index a44261d4..6b0e5832 100644 --- a/src/engine/events/SetMetadata.cpp +++ b/src/engine/events/SetMetadata.cpp @@ -99,7 +99,7 @@ SetMetadata::pre_process() { typedef Properties::const_iterator iterator; - bool is_graph_object = (_subject.scheme() == Path::scheme && Path::is_valid(_subject.str())); + const bool is_graph_object = Path::is_path(_subject); _object = is_graph_object ? _engine.engine_store()->find_object(Path(_subject.str())) -- cgit v1.2.1