From cc384f6f622cc10fd83616256080b80dc2123aaf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 14 Sep 2006 02:27:02 +0000 Subject: Cleaned up client-side model code significantly (made everything private so only Store can change the state of models). Extremely broken, just committing to move code between machines :). git-svn-id: http://svn.drobilla.net/lad/ingen@133 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/Store.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/libs/client/Store.h') diff --git a/src/libs/client/Store.h b/src/libs/client/Store.h index 99466b1d..cd27e5d6 100644 --- a/src/libs/client/Store.h +++ b/src/libs/client/Store.h @@ -36,6 +36,8 @@ class PluginModel; class PatchModel; class NodeModel; class PortModel; +class ConnectionModel; + /** Automatically manages models of objects in the engine. * @@ -62,9 +64,14 @@ private: void add_plugin(CountedPtr plugin); + // It would be nice to integrate these somehow.. + void add_orphan(CountedPtr orphan); void resolve_orphans(CountedPtr parent); + void add_connection_orphan(CountedPtr orphan); + void resolve_connection_orphans(CountedPtr port); + void add_plugin_orphan(CountedPtr orphan); void resolve_plugin_orphans(CountedPtr plugin); @@ -81,7 +88,9 @@ private: void connection_event(const Path& src_port_path, const Path& dst_port_path); void disconnection_event(const Path& src_port_path, const Path& dst_port_path); - map > m_objects; ///< Keyed by Ingen path + typedef map > ObjectMap; + ObjectMap m_objects; ///< Keyed by Ingen path + map > m_plugins; ///< Keyed by URI /** Objects we've received, but depend on the existance of another unknown object. -- cgit v1.2.1