summaryrefslogtreecommitdiff
path: root/gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-02-13 02:41:14 +0000
committerAlan Conway <aconway@apache.org>2007-02-13 02:41:14 +0000
commit9517deedff9691dbe3429b0b917dfd4208b0b1b8 (patch)
treef8868a2fbc63e92c770b401eeff2aee3a522697a /gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl
parentd26ea3376f66f69486fe214c8a7a8b96a7605c99 (diff)
downloadqpid-python-9517deedff9691dbe3429b0b917dfd4208b0b1b8.tar.gz
* gentools/templ.cpp/*Proxy*, CppGenerator.java: Changes to Proxy
classes to make them directly usable as an API for low-level AMQP access. - Proxies hold reference to a ChannelAdapter not just an output handler. - Removed MethodContext parameter, makes no sense on requester end. - Return RequestId from request methods so caller can correlate incoming responses. - Add RequestId parameter to response methods so caller can provide correlation for outgoing responses. - No longer inherit from *Operations classes as the signatures no longer match. Proxy is for caller (client/requester) and Operations is for callee (server/responder) * cpp/lib/client/ClientChannel.h: Channel provides a raw proxy to the broker. Normal users will still use the Channel API to deal with the broker, but advanced users (incl ourselves!) can use the raw API to directly send and receive any AMQP message. * cpp/lib/broker/BrokerChannel,BrokerAdapter: Refactor for new proxies. broker::Channel is also a ClientProxy * Sundry files: - Pass ProtcolVersion by value, it is only two bytes. - Misc. const correctness fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@506823 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl')
-rw-r--r--gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl22
1 files changed, 10 insertions, 12 deletions
diff --git a/gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl b/gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl
index e9ca5756e2..6a0e6eedb3 100644
--- a/gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl
+++ b/gentools/templ.cpp/AMQP_ClientProxy.cpp.tmpl
@@ -25,30 +25,28 @@
* Supported AMQP versions:
%{VLIST} * ${major}-${minor}
*/
-
#include <sstream>
-
-#include <AMQP_ClientProxy.h>
-#include <AMQFrame.h>
+#include "AMQP_ClientProxy.h"
#include "framing/ChannelAdapter.h"
+#include "framing/amqp_types_full.h"
%{MLIST} ${cpc_method_body_include}
namespace qpid {
namespace framing {
-AMQP_ClientProxy::AMQP_ClientProxy(OutputHandler* out, u_int8_t major, u_int8_t minor) :
-%{CLIST} ${cpc_constructor_initializer}
-
-{}
- // Inner class instance get methods
+AMQP_ClientProxy::AMQP_ClientProxy(ChannelAdapter& ch) :
+ Proxy(ch)%{CLIST} ${cpc_constructor_initializer}
+ {}
+
+ // Inner class instance get methods
%{CLIST} ${cpc_inner_class_get_method}
- // Inner class implementation
+ // Inner class implementation
%{CLIST} ${cpc_inner_class_impl}
-} /* namespace framing */
-} /* namespace qpid */
+}} // namespae qpid::framing
+