From 0f9c8151d5b42b243a499bb31a1e1f0b2e8c5f6f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 8 Feb 2015 07:02:59 +0000 Subject: Server-side copy paste with LV2 state support. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5541 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/Node.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ingen/Node.hpp') diff --git a/ingen/Node.hpp b/ingen/Node.hpp index 2cbce01c..293ac058 100644 --- a/ingen/Node.hpp +++ b/ingen/Node.hpp @@ -72,6 +72,13 @@ public: virtual const Raul::Symbol& symbol() const = 0; virtual Node* graph_parent() const = 0; + Raul::URI base_uri() const { + if (uri()[uri().size() - 1] == '/') { + return uri(); + } + return Raul::URI(uri() + '/'); + } + static Raul::URI root_uri() { return Raul::URI("ingen:/root"); } static bool uri_is_path(const Raul::URI& uri) { -- cgit v1.2.1