diff options
author | David Robillard <d@drobilla.net> | 2006-09-06 21:08:52 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-09-06 21:08:52 +0000 |
commit | 80923fdb966c74263a723f2ac6a39ea44efb07b2 (patch) | |
tree | ad84b87670612949bad257efed77652e6346beb0 /src/libs/client | |
parent | dac2461ba66560c00efb43a12e35394a698b60f7 (diff) | |
download | ingen-80923fdb966c74263a723f2ac6a39ea44efb07b2.tar.gz ingen-80923fdb966c74263a723f2ac6a39ea44efb07b2.tar.bz2 ingen-80923fdb966c74263a723f2ac6a39ea44efb07b2.zip |
Connecting/Disconnecting/Reconnecting to the engine without restarting.
git-svn-id: http://svn.drobilla.net/lad/ingen@115 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/Store.cpp | 9 | ||||
-rw-r--r-- | src/libs/client/Store.h | 2 |
2 files changed, 11 insertions, 0 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index 0b25da2e..403264f2 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -49,6 +49,15 @@ Store::Store(SigClientInterface& emitter) void +Store::clear() +{ + m_objects.clear(); + m_plugins.clear(); + +} + + +void Store::add_object(CountedPtr<ObjectModel> object) { assert(object->path() != ""); diff --git a/src/libs/client/Store.h b/src/libs/client/Store.h index ff3eea62..cb6c3206 100644 --- a/src/libs/client/Store.h +++ b/src/libs/client/Store.h @@ -47,6 +47,8 @@ public: CountedPtr<NodeModel> node(const string& path); CountedPtr<PortModel> port(const string& path);*/ + void clear(); + size_t num_objects() { return m_objects.size(); } const map<string, CountedPtr<PluginModel> >& plugins() const { return m_plugins; } |