From 19928bb583e72802746b89e322f71ecc0fcb7427 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 04:05:32 +0000 Subject: 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 --- src/shared/ResourceImpl.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'src/shared/ResourceImpl.hpp') 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 +#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 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; }; -- cgit v1.2.1