diff options
Diffstat (limited to 'src/libs')
-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; } |