diff options
author | David Robillard <d@drobilla.net> | 2008-08-15 23:34:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-15 23:34:41 +0000 |
commit | ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5 (patch) | |
tree | 9e235f0c3b7a355e3cc661720359cd3d9eb18fb9 /src/libs/client/Store.hpp | |
parent | 4d5a589570a65d508170c59b4c738b441e216a93 (diff) | |
download | ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.gz ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.tar.bz2 ingen-ab2aa4d4922ab1a62b7a43013d09b2d9d144b3c5.zip |
Push serialiser down into core ('world').
HTTP access to patches (serialised on demand).
git-svn-id: http://svn.drobilla.net/lad/ingen@1393 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.hpp')
-rw-r--r-- | src/libs/client/Store.hpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/libs/client/Store.hpp b/src/libs/client/Store.hpp index 70f11142..f86c511a 100644 --- a/src/libs/client/Store.hpp +++ b/src/libs/client/Store.hpp @@ -28,6 +28,7 @@ #include <raul/PathTable.hpp> #include <raul/TableImpl.hpp> #include "interface/EngineInterface.hpp" +#include "interface/Store.hpp" using std::string; using std::list; using Ingen::Shared::EngineInterface; using Raul::Path; @@ -52,9 +53,9 @@ class ConnectionModel; * * \ingroup IngenClient */ -class Store : public sigc::trackable { // FIXME: is trackable necessary? +class ClientStore : public Shared::Store, public sigc::trackable { // FIXME: is trackable necessary? public: - Store(SharedPtr<EngineInterface> engine, SharedPtr<SigClientInterface> emitter); + ClientStore(SharedPtr<EngineInterface> engine, SharedPtr<SigClientInterface> emitter); SharedPtr<PluginModel> plugin(const string& uri); SharedPtr<ObjectModel> object(const Path& path); @@ -63,17 +64,28 @@ public: size_t num_object() { return _objects.size(); } + Objects::iterator find(const Path& path) { return _objects.find(path); } + typedef Raul::Table<string, SharedPtr<PluginModel> > Plugins; const Plugins& plugins() const { return _plugins; } typedef Raul::PathTable< SharedPtr<Shared::GraphObject> > Objects; const Objects& objects() const { return _objects; } + Objects& objects() { return _objects; } + + Objects::const_iterator children_begin(SharedPtr<Shared::GraphObject> o) const; + Objects::const_iterator children_end(SharedPtr<Shared::GraphObject> o) const; + + SharedPtr<Shared::GraphObject> find_child(SharedPtr<Shared::GraphObject> parent, + const string& child_name) const; sigc::signal<void, SharedPtr<ObjectModel> > signal_new_object; sigc::signal<void, SharedPtr<PluginModel> > signal_new_plugin; private: + void add(Shared::GraphObject* o) { throw; } + void add_object(SharedPtr<ObjectModel> object); SharedPtr<ObjectModel> remove_object(const Path& path); |