summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-03-04 03:52:08 +0000
committerDavid Robillard <d@drobilla.net>2010-03-04 03:52:08 +0000
commit3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b (patch)
tree004aed4a43706a390b7732bbcd7c955d55b42f5d /src/engine
parente48334e90bad338e6d83eca109702dedbf22f3e1 (diff)
downloadingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.tar.gz
ingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.tar.bz2
ingen-3157f13a4f8227d53d4c6c0669d2ea2e7ebe7d6b.zip
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
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/GraphObjectImpl.cpp2
-rw-r--r--src/engine/HTTPEngineReceiver.cpp2
-rw-r--r--src/engine/events/RequestMetadata.cpp2
-rw-r--r--src/engine/events/SetMetadata.cpp2
4 files changed, 4 insertions, 4 deletions
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: <http://www.w3.org/2000/01/rdf-schema#> .\n")
.append("\n<> rdfs:seeAlso <plugins> ;")
.append("\n rdfs:seeAlso <stream> ;")
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()))