diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2006-11-21 19:44:40 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2006-11-21 19:44:40 +0000 |
| commit | 03b8de17239609c9de5e18e0d59eccdd004067eb (patch) | |
| tree | 4ac6b915f0983e76deda9691f7b0ac90f8b4fded /gentools/templ.cpp/MethodBodyClass.h.tmpl | |
| parent | 4ac1fb1bc85fbad989deca30410d18eefb727837 (diff) | |
| download | qpid-python-03b8de17239609c9de5e18e0d59eccdd004067eb.tar.gz | |
Updates and bugfixes
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477844 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools/templ.cpp/MethodBodyClass.h.tmpl')
| -rw-r--r-- | gentools/templ.cpp/MethodBodyClass.h.tmpl | 32 |
1 files changed, 11 insertions, 21 deletions
diff --git a/gentools/templ.cpp/MethodBodyClass.h.tmpl b/gentools/templ.cpp/MethodBodyClass.h.tmpl index 5d68ac4f2d..2a562cadcf 100644 --- a/gentools/templ.cpp/MethodBodyClass.h.tmpl +++ b/gentools/templ.cpp/MethodBodyClass.h.tmpl @@ -26,15 +26,13 @@ %{VLIST} * ${major}-${minor} */ -#include <map> #include <string> #include <sstream> -#include "qpid/framing/amqp_types.h" -#include "AMQP_ServerOperations.h" -#include "qpid/framing/AMQMethodBody.h" -#include "qpid/framing/Buffer.h" -#include "qpid/framing/FieldTable.h" +#include <qpid/framing/amqp_types.h> +#include <qpid/framing/AMQMethodBody.h> +#include <qpid/framing/Buffer.h> +#include <qpid/framing/FieldTable.h> #ifndef _${CLASS}${METHOD}Body_ #define _${CLASS}${METHOD}Body_ @@ -56,15 +54,11 @@ public: typedef boost::shared_ptr<${CLASS}${METHOD}Body> shared_ptr; // Constructors and destructors - - inline ${CLASS}${METHOD}Body( -%{FLIST} ${mb_field_list_declare} - ) : -%{FLIST} ${mb_field_list_initializer} - {} - inline ${CLASS}${METHOD}Body() {} +${mb_constructor_with_initializers} + inline ${CLASS}${METHOD}Body(u_int8_t major, u_int8_t minor): AMQMethodBody(major, minor) {} + inline ${CLASS}${METHOD}Body(ProtocolVersion version): AMQMethodBody(version) {} virtual ~${CLASS}${METHOD}Body() {} // Attribute get methods @@ -96,22 +90,18 @@ public: return size; } - inline void encodeContent(Buffer& buffer) const + inline void encodeContent(Buffer&${mb_buffer_param}) const { %{FLIST} ${mb_encode} } - inline void decodeContent(Buffer& buffer) + inline void decodeContent(Buffer&${mb_buffer_param}) { %{FLIST} ${mb_decode} } - inline void invoke(AMQP_ServerOperations& target, u_int16_t channel) - { - target.getBasicHandler()->publish(channel, -%{FLIST} ${mb_field_list} - ); - } +${mb_server_operation_invoke} + }; // class ${CLASS}${METHOD}Body ${version_namespace_end} |
