From 82e07bb30905feb2c11bb6d9f3624f976ab070a5 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 21 Sep 2006 16:19:13 +0000 Subject: Use the generated proxy classes rather than constructing frames directly. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@448597 13f79535-47bb-0310-9956-ffa450edef68 --- .../framing/generated/stylesheets/amqp_client.xsl | 26 +++---- .../framing/generated/stylesheets/amqp_server.xsl | 80 +++++++++++++++------- 2 files changed, 69 insertions(+), 37 deletions(-) (limited to 'cpp/common/framing') diff --git a/cpp/common/framing/generated/stylesheets/amqp_client.xsl b/cpp/common/framing/generated/stylesheets/amqp_client.xsl index f0fa3d7890..13a912a926 100644 --- a/cpp/common/framing/generated/stylesheets/amqp_client.xsl +++ b/cpp/common/framing/generated/stylesheets/amqp_client.xsl @@ -11,11 +11,11 @@ --> - + -#ifndef _AMQP_Client_ -#define _AMQP_Client_ +#ifndef _AMQP_ServerProxy_ +#define _AMQP_ServerProxy_ #include "AMQP_ServerOperations.h" #include "FieldTable.h" @@ -24,13 +24,13 @@ namespace qpid { namespace framing { -class AMQP_Client : virtual public AMQP_ServerOperations +class AMQP_ServerProxy : virtual public AMQP_ServerOperations { OutputHandler* out; public: - AMQP_Client(OutputHandler* _out); - virtual ~AMQP_Client() {} + AMQP_ServerProxy(OutputHandler* _out); + virtual ~AMQP_ServerProxy() {} @@ -76,7 +76,7 @@ class AMQP_Client : virtual public AMQP_ServerOperations }; /* class */ - }; /* class AMQP_Client */ + }; /* class AMQP_ServerProxy */ } /* namespace framing */ } /* namespace qpid */ @@ -94,16 +94,16 @@ class AMQP_Client : virtual public AMQP_ServerOperations --> - + -#include "AMQP_Client.h" +#include "AMQP_ServerProxy.h" namespace qpid { namespace framing { -AMQP_Client::AMQP_Client(OutputHandler* _out) : +AMQP_ServerProxy::AMQP_ServerProxy(OutputHandler* _out) : out(_out) { } @@ -111,15 +111,15 @@ AMQP_Client::AMQP_Client(OutputHandler* _out) : /* ++++++++++ Class: ++++++++++ */ -AMQP_Client::::(OutputHandler* _out) : +AMQP_ServerProxy::::(OutputHandler* _out) : out(_out) { } -AMQP_Client::::~() {} +AMQP_ServerProxy::::~() {} - void AMQP_Client:::: + void AMQP_ServerProxy:::: ( u_int16_t channel , diff --git a/cpp/common/framing/generated/stylesheets/amqp_server.xsl b/cpp/common/framing/generated/stylesheets/amqp_server.xsl index 4ad29a4b95..5ff8994888 100644 --- a/cpp/common/framing/generated/stylesheets/amqp_server.xsl +++ b/cpp/common/framing/generated/stylesheets/amqp_server.xsl @@ -11,11 +11,10 @@ --> - + - -#ifndef _AMQP_Server_ -#define _AMQP_Server_ +#ifndef _AMQP_ClientProxy_ +#define _AMQP_ClientProxy_ #include "AMQP_ClientOperations.h" #include "FieldTable.h" @@ -24,14 +23,15 @@ namespace qpid { namespace framing { -class AMQP_Server : virtual public AMQP_ClientOperations +class AMQP_ClientProxy : virtual public AMQP_ClientOperations { - OutputHandler* out; - public: - AMQP_Server(OutputHandler* _out); - virtual ~AMQP_Server() {} - + + AMQP_ClientProxy(OutputHandler* _out); + virtual ~AMQP_ClientProxy() {}; + + + /** ===== Class: ===== @@ -74,15 +74,32 @@ class AMQP_Server : virtual public AMQP_ClientOperations ); - }; /* class */ + }; /* class */ - }; /* class AMQP_Server */ + + + + ; + + + private: + + OutputHandler* out; + + + + ; + + + + + }; /* class AMQP_ClientProxy */ } /* namespace framing */ } /* namespace qpid */ -#endif - +#endif + @@ -94,32 +111,39 @@ class AMQP_Server : virtual public AMQP_ClientOperations --> - + - -#include "AMQP_Server.h" +#include "AMQP_ClientProxy.h" namespace qpid { namespace framing { -AMQP_Server::AMQP_Server(OutputHandler* _out) : - out(_out) +AMQP_ClientProxy::AMQP_ClientProxy(OutputHandler* _out) : + out(_out), + + + + , + + + { -} +} + /* ++++++++++ Class: ++++++++++ */ -AMQP_Server::::(OutputHandler* _out) : +AMQP_ClientProxy::::(OutputHandler* _out) : out(_out) { } -AMQP_Server::::~() {} +AMQP_ClientProxy::::~() {} - void AMQP_Server:::: + void AMQP_ClientProxy:::: ( u_int16_t channel , @@ -145,8 +169,16 @@ AMQP_Server::::~< - + + + { + ; + } + + + + } /* namespace framing */ } /* namespace qpid */ -- cgit v1.2.1