diff options
author | David Robillard <d@drobilla.net> | 2006-06-12 00:41:00 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-12 00:41:00 +0000 |
commit | 190e2cf3c91f8bd5b1a6f69d00e84a108c743898 (patch) | |
tree | 2c7e2d52fd51cfbab6b18d523821bd456cbd6edd /src/libs/client/Store.cpp | |
parent | f43bdc8241e1bfab0980199bcd995e214ff94720 (diff) | |
download | ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.tar.gz ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.tar.bz2 ingen-190e2cf3c91f8bd5b1a6f69d00e84a108c743898.zip |
Metadata working based on Store signals (node positions restored)
git-svn-id: http://svn.drobilla.net/lad/grauph@29 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client/Store.cpp')
-rw-r--r-- | src/libs/client/Store.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libs/client/Store.cpp b/src/libs/client/Store.cpp index ae285305..65b3080e 100644 --- a/src/libs/client/Store.cpp +++ b/src/libs/client/Store.cpp @@ -33,6 +33,7 @@ Store::Store(SigClientInterface& emitter) emitter.new_patch_sig.connect(sigc::mem_fun(this, &Store::new_patch_event)); emitter.new_node_sig.connect(sigc::mem_fun(this, &Store::new_node_event)); emitter.new_port_sig.connect(sigc::mem_fun(this, &Store::new_port_event)); + emitter.metadata_update_sig.connect(sigc::mem_fun(this, &Store::metadata_update_event)); } @@ -259,5 +260,16 @@ Store::new_port_event(const string& path, const string& type, bool is_output) } +void +Store::metadata_update_event(const string& subject_path, const string& predicate, const string& value) +{ + CountedPtr<ObjectModel> subject = object(subject_path); + if (subject) + subject->set_metadata(predicate, value); + else + cerr << "ERROR: metadata for nonexistant object." << endl; +} + + } // namespace LibOmClient |