From 763bba9de67fb1bd06658a0bac91440727ee5a51 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 8 Oct 2007 16:30:57 +0000 Subject: SharedPtr-ify engine side store. Fix reattaching to engine. Fix connection paths. Remove last dependencies on client (model) library from Serialiser. Fix Raul::PathTable::find_descendants_end. git-svn-id: http://svn.drobilla.net/lad/ingen@847 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/GraphObject.hpp | 11 ++++++++++- src/common/interface/Makefile.am | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src/common') diff --git a/src/common/interface/GraphObject.hpp b/src/common/interface/GraphObject.hpp index 7ea566f6..838ba481 100644 --- a/src/common/interface/GraphObject.hpp +++ b/src/common/interface/GraphObject.hpp @@ -21,8 +21,11 @@ #include #include #include -#include +#include #include +#include + +using Raul::PathTable; namespace Ingen { namespace Shared { @@ -39,10 +42,16 @@ class GraphObject : public Raul::Deletable public: typedef std::map MetadataMap; + typedef PathTable< SharedPtr >::const_iterator const_iterator; + virtual const Raul::Path path() const = 0; virtual const std::string name() const = 0; virtual const MetadataMap& metadata() const = 0; virtual bool polyphonic() const = 0; + + virtual const_iterator children_begin() const = 0; + virtual const_iterator children_end() const = 0; + virtual SharedPtr find_child(const string& name) const = 0; }; diff --git a/src/common/interface/Makefile.am b/src/common/interface/Makefile.am index 7fc68563..ad15c212 100644 --- a/src/common/interface/Makefile.am +++ b/src/common/interface/Makefile.am @@ -4,6 +4,7 @@ EXTRA_DIST = \ DataType.hpp \ EngineInterface.hpp \ Node.hpp \ + Patch.hpp \ Plugin.hpp \ Port.hpp \ README -- cgit v1.2.1