diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2006-11-14 16:56:12 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2006-11-14 16:56:12 +0000 |
| commit | 18d2f941b353df77e310465bff30125768ecc8aa (patch) | |
| tree | b6f42b0b7bb680c1aadec5ea58d9017416afcc4b /gentools/templ.cpp/MethodBodyClass.h.tmpl | |
| parent | a2c787d6e266d804a6b673c5d4c207f2a16c1454 (diff) | |
| download | qpid-python-18d2f941b353df77e310465bff30125768ecc8aa.tar.gz | |
Fixes to the generated C++ code and templates
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@474866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools/templ.cpp/MethodBodyClass.h.tmpl')
| -rw-r--r-- | gentools/templ.cpp/MethodBodyClass.h.tmpl | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/gentools/templ.cpp/MethodBodyClass.h.tmpl b/gentools/templ.cpp/MethodBodyClass.h.tmpl index f62e24729e..5d68ac4f2d 100644 --- a/gentools/templ.cpp/MethodBodyClass.h.tmpl +++ b/gentools/templ.cpp/MethodBodyClass.h.tmpl @@ -47,16 +47,13 @@ ${version_namespace_start} class ${CLASS}${METHOD}Body : virtual public AMQMethodBody { - const int classId = ${CLASS_ID_INIT}; - const int methodId = ${METHOD_ID_INIT}; - // Method field declarations %{FLIST} ${mb_field_declaration} public: - typedef std::tr1::shared_ptr<${CLASS}${METHOD}Body> shared_ptr; + typedef boost::shared_ptr<${CLASS}${METHOD}Body> shared_ptr; // Constructors and destructors @@ -68,8 +65,6 @@ public: inline ${CLASS}${METHOD}Body() {} - ${CLASS}${METHOD}Body() {} - virtual ~${CLASS}${METHOD}Body() {} // Attribute get methods @@ -86,12 +81,12 @@ public: inline u_int16_t amqpClassId() const { - return classId; + return ${CLASS_ID_INIT}; } inline u_int16_t amqpMethodId() const { - return methodId; + return ${METHOD_ID_INIT}; } inline u_int32_t bodySize() const @@ -113,7 +108,7 @@ public: inline void invoke(AMQP_ServerOperations& target, u_int16_t channel) { - target.getBasicHandler()->consume( + target.getBasicHandler()->publish(channel, %{FLIST} ${mb_field_list} ); } |
