diff options
author | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-13 02:57:36 +0000 |
commit | 198560d5fd499ab14eb4e130ee74e21fa86674a4 (patch) | |
tree | eb7bd2ae2d19b6db2c28c79d1c7663fe5b1f49de /src/client/ClientStore.hpp | |
parent | 981c7950a6f5fc9f22decaee261556d20b641d5c (diff) | |
download | ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.gz ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.tar.bz2 ingen-198560d5fd499ab14eb4e130ee74e21fa86674a4.zip |
Make models const in client code.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3259 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/ClientStore.hpp')
-rw-r--r-- | src/client/ClientStore.hpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/client/ClientStore.hpp b/src/client/ClientStore.hpp index 59b112ed..32b66484 100644 --- a/src/client/ClientStore.hpp +++ b/src/client/ClientStore.hpp @@ -61,9 +61,10 @@ public: SharedPtr<ServerInterface> engine=SharedPtr<ServerInterface>(), SharedPtr<SigClientInterface> emitter=SharedPtr<SigClientInterface>()); - SharedPtr<PluginModel> plugin(const Raul::URI& uri); - SharedPtr<ObjectModel> object(const Raul::Path& path); - SharedPtr<Resource> resource(const Raul::URI& uri); + SharedPtr<PluginModel> plugin(const Raul::URI& uri); + SharedPtr<Resource> resource(const Raul::URI& uri); + + SharedPtr<const ObjectModel> object(const Raul::Path& path) const; void clear(); @@ -109,6 +110,8 @@ public: private: void add(GraphObject* o) { throw; } + SharedPtr<ObjectModel> _object(const Raul::Path& path); + void add_object(SharedPtr<ObjectModel> object); SharedPtr<ObjectModel> remove_object(const Raul::Path& path); |