diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 06:42:40 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 06:42:40 +0000 |
commit | f60b59b49df6bc298755d49e97bc329b6d6030a1 (patch) | |
tree | bdd226ac9634fc0d078138bd6b5c20a6630e2b80 | |
parent | c7636aff127f9095422091d39baae1a0fdbf8cee (diff) | |
download | raul-f60b59b49df6bc298755d49e97bc329b6d6030a1.tar.gz raul-f60b59b49df6bc298755d49e97bc329b6d6030a1.tar.bz2 raul-f60b59b49df6bc298755d49e97bc329b6d6030a1.zip |
Use new query system to get LADSPA plugin names from the engine.
Fixes ticket #365.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@1998 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | raul/Path.hpp | 1 | ||||
-rw-r--r-- | raul/URI.hpp | 2 | ||||
-rw-r--r-- | src/Path.cpp | 7 |
3 files changed, 6 insertions, 4 deletions
diff --git a/raul/Path.hpp b/raul/Path.hpp index bb666de..33e3936 100644 --- a/raul/Path.hpp +++ b/raul/Path.hpp @@ -55,6 +55,7 @@ public: std::string _path; }; + static const std::string scheme; static const std::string prefix; static const size_t prefix_len; static const std::string root_uri; diff --git a/raul/URI.hpp b/raul/URI.hpp index 5967609..7642aaf 100644 --- a/raul/URI.hpp +++ b/raul/URI.hpp @@ -74,7 +74,7 @@ public: std::string chop_scheme() const { return chop_start(":"); } /** Return the URI scheme (everything before the first ':') */ - inline std::string name() const { return substr(0, find(":")); } + inline std::string scheme() const { return substr(0, find(":")); } inline const std::string& str() const { return *this; } inline const char* c_str() const { return str().c_str(); } diff --git a/src/Path.cpp b/src/Path.cpp index cec42fd..e7d4d23 100644 --- a/src/Path.cpp +++ b/src/Path.cpp @@ -21,9 +21,10 @@ using namespace std; namespace Raul { -const std::string Path::prefix = "path:"; -const size_t Path::prefix_len = 5; -const std::string Path::root_uri = Path::prefix + "/"; +const string Path::scheme = "path"; +const string Path::prefix = Path::scheme + ":"; +const size_t Path::prefix_len = prefix.length(); +const string Path::root_uri = Path::prefix + "/"; bool Path::is_valid(const std::basic_string<char>& path_str) |