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/AMQP_ServerOperations.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/AMQP_ServerOperations.h.tmpl')
| -rw-r--r-- | gentools/templ.cpp/AMQP_ServerOperations.h.tmpl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl index b802cbcdce..eed4d7960f 100644 --- a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl +++ b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl @@ -30,6 +30,9 @@ #define _AMQP_ServerOperations_ #include "qpid/framing/FieldTable.h" +#include "qpid/framing/ProtocolVersion.h" +#include "qpid/framing/ProtocolVersionException.h" +#include <sstream> namespace qpid { namespace framing { @@ -47,11 +50,11 @@ public: inline u_int8_t getMajor() const { return version.getMajor(); } inline u_int8_t getMinor() const { return version.getMinor(); } inline const ProtocolVersion& getVersion() const { return version; } - inline isVersion(u_int8_t _major, u_int8_t _minor) const + inline bool isVersion(u_int8_t _major, u_int8_t _minor) const { return version.equals(_major, _minor); } - inline isVersion(ProtocolVersion& _version) const + inline bool isVersion(ProtocolVersion& _version) const { return version.equals(_version); } @@ -59,14 +62,14 @@ public: // Include framing constant declarations #include "AMQP_Constants.h" - // Method handler get methods - -%{CLIST} ${soh_method_handler_get_method} - // Inner classes %{CLIST} ${soh_inner_class} + // Method handler get methods + +%{CLIST} ${soh_method_handler_get_method} + }; /* class AMQP_ServerOperations */ } /* namespace framing */ |
