diff options
author | David Robillard <d@drobilla.net> | 2008-11-16 05:34:01 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-11-16 05:34:01 +0000 |
commit | 0fd3c583e032a3cd5af877902d4561a45179a232 (patch) | |
tree | e6bc62875842fda0908f1aea3a51b67740825d71 /src/engine/ObjectSender.cpp | |
parent | 24d998447070dbfef3eaf7762dce7e97c3903801 (diff) | |
download | ingen-0fd3c583e032a3cd5af877902d4561a45179a232.tar.gz ingen-0fd3c583e032a3cd5af877902d4561a45179a232.tar.bz2 ingen-0fd3c583e032a3cd5af877902d4561a45179a232.zip |
Follow new object creation via HTTP (serialising/parsing RDF to communicate between client and engine).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1722 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/ObjectSender.cpp')
-rw-r--r-- | src/engine/ObjectSender.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/engine/ObjectSender.cpp b/src/engine/ObjectSender.cpp index bb2de6f8..8f38b738 100644 --- a/src/engine/ObjectSender.cpp +++ b/src/engine/ObjectSender.cpp @@ -31,6 +31,31 @@ namespace Ingen { void +ObjectSender::send_object(ClientInterface* client, const GraphObjectImpl* object, bool recursive) +{ + client->new_object(object); + + const PatchImpl* patch = dynamic_cast<const PatchImpl*>(object); + if (patch) { + send_patch(client, patch, recursive); + return; + } + + const NodeImpl* node = dynamic_cast<const NodeImpl*>(object); + if (node) { + send_node(client, node, recursive); + return; + } + + const PortImpl* port = dynamic_cast<const PortImpl*>(object); + if (port) { + send_port(client, port); + return; + } +} + + +void ObjectSender::send_patch(ClientInterface* client, const PatchImpl* patch, bool recursive) { client->bundle_begin(); |