summaryrefslogtreecommitdiff
path: root/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'gentools/templ.cpp/AMQP_ServerOperations.h.tmpl')
-rw-r--r--gentools/templ.cpp/AMQP_ServerOperations.h.tmpl28
1 files changed, 5 insertions, 23 deletions
diff --git a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl
index c6db6f002a..aca065c757 100644
--- a/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl
+++ b/gentools/templ.cpp/AMQP_ServerOperations.h.tmpl
@@ -29,43 +29,25 @@
#ifndef _AMQP_ServerOperations_
#define _AMQP_ServerOperations_
-#include <FieldTable.h>
-#include <FramingContent.h>
-#include <ProtocolVersion.h>
-#include <ProtocolVersionException.h>
-#include "MethodContext.h"
+#include "ProtocolVersion.h"
namespace qpid {
namespace framing {
-class AMQP_ServerProxy;
-class AMQP_ClientProxy;
+class MethodContext;
class AMQP_ServerOperations
{
protected:
ProtocolVersion version;
- AMQP_ServerOperations() {}
public:
- AMQP_ServerOperations(u_int8_t major, u_int8_t minor) : version(major, minor) {}
- AMQP_ServerOperations(const ProtocolVersion& version) : version(version) {}
virtual ~AMQP_ServerOperations() {}
- 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 bool isVersion(u_int8_t _major, u_int8_t _minor) const
- {
- return version.equals(_major, _minor);
- }
- inline bool isVersion(const ProtocolVersion& _version) const
- {
- return version.equals(_version);
- }
+ virtual ProtocolVersion getVersion() const = 0;
- // Include framing constant declarations
- #include <AMQP_Constants.h>
+ // Include framing constant declarations
+ #include "AMQP_Constants.h"
// Inner classes