summaryrefslogtreecommitdiff
path: root/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
diff options
context:
space:
mode:
authorKim van der Riet <kpvdr@apache.org>2006-11-02 17:46:45 +0000
committerKim van der Riet <kpvdr@apache.org>2006-11-02 17:46:45 +0000
commitfafc822a570d11c4adfe6b5aa953e92ef1ea2b26 (patch)
tree50d9b7f350c5007be3ecebe34ce04012e3116d59 /gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
parent92f8bab218aa33c69a7542c00f07971fb43b0f41 (diff)
downloadqpid-python-fafc822a570d11c4adfe6b5aa953e92ef1ea2b26.tar.gz
Gentools C++ generator generation for AMQP_ClientOperations.h and AMQP_ServerOperations.h now complete, but untested.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@470447 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'gentools/templ.cpp/AMQP_ClientOperations.h.tmpl')
-rw-r--r--gentools/templ.cpp/AMQP_ClientOperations.h.tmpl28
1 files changed, 20 insertions, 8 deletions
diff --git a/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl b/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
index bdc3d6c694..b8010896a7 100644
--- a/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
+++ b/gentools/templ.cpp/AMQP_ClientOperations.h.tmpl
@@ -34,16 +34,28 @@ namespace framing {
class AMQP_ClientOperations
{
- public:
- AMQP_ClientOperations() {}
- virtual ~AMQP_ClientOperations() {}
-{so_get_amqp_major}
-{so_get_amqp_minor}
+private:
+ u_int8_t major;
+ u_int8_t minor;
- // Method handler get methods
-{CLIST} {co_method_handler_get_method}
+public:
+ AMQP_ClientOperations(u_int8_t major, u_int8_t minor) : major(major), minor(minor) {}
+ virtual ~AMQP_ClientOperations() {}
-{CLIST} {co_cleint method_inner_class}
+ 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} ${coh_method_handler_get_method}
+
+ // Inner classes
+
+%{CLIST} ${coh_inner_class}
}; /* class AMQP_ClientOperations */