diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2006-11-01 15:20:01 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2006-11-01 15:20:01 +0000 |
| commit | 85d867ef67ced09629737a879f46c343ecb2e164 (patch) | |
| tree | c1147095731e4c6bc8ade7518007934b55ca8c24 /gentools/templ.cpp | |
| parent | 025b7a203675fad6be2288ae5d23bdc2575b076b (diff) | |
| download | qpid-python-85d867ef67ced09629737a879f46c343ecb2e164.tar.gz | |
Updated code generator to produce ServerOperations class. Other minor fixes in generator.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@469929 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools/templ.cpp')
| -rw-r--r-- | gentools/templ.cpp/AMQP_ServerOperations.h.tmpl | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl index 26c06d42a2..80c6c0f5ab 100644 --- a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl +++ b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl @@ -34,16 +34,27 @@ namespace framing { class AMQP_ServerOperations { + private: + u_int8_t major; + u_int8_t minor; public: - AMQP_ServerOperations() {} + AMQP_ServerOperations(u_int8_t major, u_int8_t minor) : major(major), minor(minor) {} virtual ~AMQP_ServerOperations() {} -{so_get_amqp_major} -{so_get_amqp_minor} + + inline u_int8_t getMajor() { return major; } + inline u_int8_t getMinor() { return minor; } + inline isVersion(u_int8_t _major, u_int8_t _minor) + { + return major == _major && minor == _minor; + } - // Method handler get methods -{CLIST} {co_method_handler_get_method} + // Method handler get methods + +%{CLIST} ${co_method_handler_get_method} -{CLIST} {co_server_method_inner_class} + // Inner classes + +%{CLIST} ${co_server_method_inner_class} }; /* class AMQP_ServerOperations */ |
