diff options
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/interface/GraphObject.hpp | 11 | ||||
-rw-r--r-- | src/common/interface/Makefile.am | 1 |
2 files changed, 11 insertions, 1 deletions
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 <string> #include <map> #include <raul/Deletable.hpp> -#include <raul/Path.hpp> +#include <raul/PathTable.hpp> #include <raul/Atom.hpp> +#include <raul/SharedPtr.hpp> + +using Raul::PathTable; namespace Ingen { namespace Shared { @@ -39,10 +42,16 @@ class GraphObject : public Raul::Deletable public: typedef std::map<std::string, Raul::Atom> MetadataMap; + typedef PathTable< SharedPtr<GraphObject> >::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<GraphObject> 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 |