summaryrefslogtreecommitdiffstats
path: root/src/common/interface
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
committerDavid Robillard <d@drobilla.net>2008-08-15 02:48:48 +0000
commitb18b677b0b747ad4fbcd71102488b2cfab7cb3f9 (patch)
tree14d4ab8bdfb0918fd1c6fbdc87bc6e822ddeb197 /src/common/interface
parentbde12203a31e8db6b04793587bf1864383d07539 (diff)
downloadingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.tar.gz
ingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.tar.bz2
ingen-b18b677b0b747ad4fbcd71102488b2cfab7cb3f9.zip
Add strong Symbol class (just a restricted string, like path) and use it for ingen object symbols.
git-svn-id: http://svn.drobilla.net/lad/ingen@1387 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface')
-rw-r--r--src/common/interface/EngineInterface.hpp2
-rw-r--r--src/common/interface/GraphObject.hpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/common/interface/EngineInterface.hpp b/src/common/interface/EngineInterface.hpp
index 41406ca8..08fb9c1a 100644
--- a/src/common/interface/EngineInterface.hpp
+++ b/src/common/interface/EngineInterface.hpp
@@ -80,7 +80,7 @@ public:
bool polyphonic) = 0;
virtual void rename(const string& old_path,
- const string& new_name) = 0;
+ const string& new_symbol) = 0;
virtual void destroy(const string& path) = 0;
diff --git a/src/common/interface/GraphObject.hpp b/src/common/interface/GraphObject.hpp
index 0f6ff9cb..88ee8df0 100644
--- a/src/common/interface/GraphObject.hpp
+++ b/src/common/interface/GraphObject.hpp
@@ -22,6 +22,7 @@
#include <map>
#include <raul/Deletable.hpp>
#include <raul/PathTable.hpp>
+#include <raul/Symbol.hpp>
#include <raul/Atom.hpp>
#include <raul/SharedPtr.hpp>
#include <raul/WeakPtr.hpp>
@@ -46,7 +47,7 @@ public:
typedef PathTable< SharedPtr<GraphObject> >::const_iterator const_iterator;
virtual const Raul::Path path() const = 0;
- virtual const std::string name() const = 0;
+ virtual const Raul::Symbol symbol() const = 0;
virtual const Variables& variables() const = 0;
virtual bool polyphonic() const = 0;