diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/shared/ResourceImpl.hpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
The great ID refactoring of 2009.
Path is now actually URI (scheme path: for now).
Therefore ingen nodes and such live in the same namespace as ... well, everything.
Including plugins.
Thar be profit, laddies.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared/ResourceImpl.hpp')
-rw-r--r-- | src/shared/ResourceImpl.hpp | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/shared/ResourceImpl.hpp b/src/shared/ResourceImpl.hpp index 2d438487..ca588d8f 100644 --- a/src/shared/ResourceImpl.hpp +++ b/src/shared/ResourceImpl.hpp @@ -19,6 +19,7 @@ #define RESOURCEIMPL_HPP #include <map> +#include "raul/URI.hpp" #include "interface/Resource.hpp" namespace Ingen { @@ -28,21 +29,19 @@ namespace Shared { class ResourceImpl : virtual public Resource { public: - typedef std::map<std::string, Raul::Atom> Properties; + ResourceImpl(const Raul::URI& uri) : _uri(uri) {} - ResourceImpl(const std::string& uri) : _uri(uri) {} - - virtual const std::string uri() const { return _uri; } + virtual const Raul::URI uri() const { return _uri.str(); } const Properties& properties() const { return _properties; } Properties& properties() { return _properties; } - const Raul::Atom& get_property(const std::string& uri) const; - void set_property(const std::string& uri, const Raul::Atom& value); + const Raul::Atom& get_property(const Raul::URI& uri) const; + void set_property(const Raul::URI& uri, const Raul::Atom& value); private: - std::string _uri; - Properties _properties; + Raul::URI _uri; + Properties _properties; }; |