summaryrefslogtreecommitdiff
path: root/gentools/templ.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 497439 via svnmerge from Alan Conway2007-03-131-5/+0
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid ........ r497439 | gsim | 2007-01-18 09:14:54 -0500 (Thu, 18 Jan 2007) | 3 lines Added the non-standard 'binary' type to the field table implementation to support the java client. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@517878 13f79535-47bb-0310-9956-ffa450edef68
* Merged revisions 496678 via svnmerge from Alan Conway2007-03-137-13/+20
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid ........ r496678 | kpvdr | 2007-01-16 08:09:50 -0500 (Tue, 16 Jan 2007) | 1 line Fixed QPID-296 Header guards may not be compliant with C++ standard ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@517855 13f79535-47bb-0310-9956-ffa450edef68
* * gentools/templ.cpp/*Proxy*, CppGenerator.java: Changes to ProxyAlan Conway2007-02-138-127/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | classes to make them directly usable as an API for low-level AMQP access. - Proxies hold reference to a ChannelAdapter not just an output handler. - Removed MethodContext parameter, makes no sense on requester end. - Return RequestId from request methods so caller can correlate incoming responses. - Add RequestId parameter to response methods so caller can provide correlation for outgoing responses. - No longer inherit from *Operations classes as the signatures no longer match. Proxy is for caller (client/requester) and Operations is for callee (server/responder) * cpp/lib/client/ClientChannel.h: Channel provides a raw proxy to the broker. Normal users will still use the Channel API to deal with the broker, but advanced users (incl ourselves!) can use the raw API to directly send and receive any AMQP message. * cpp/lib/broker/BrokerChannel,BrokerAdapter: Refactor for new proxies. broker::Channel is also a ClientProxy * Sundry files: - Pass ProtcolVersion by value, it is only two bytes. - Misc. const correctness fixes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@506823 13f79535-47bb-0310-9956-ffa450edef68
* * cpp/lib/common/framing/MethodContext.h: Reduced MethodContext toAlan Conway2007-02-022-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ChannelAdapter and Method Body. Request ID comes from body, ChannelAdapter is used to send frames, not OutputHandler. * cpp/lib/common/framing/ChannelAdapter.h,.cpp: Removed context member. Context is per-method not per-channel. * cpp/lib/broker/*: Replace direct use of OutputHandler and ChannelId with MethodContext (for responses) or ChannelAdapter (for requests.) Use context request-ID to construct responses, send all bodies via ChannelAdapter. * cpp/lib/broker/BrokerAdapter.cpp: Link broker::Channel to BrokerAdapter. * cpp/lib/broker/*: Remove unnecessary ProtocolVersion parameters. Fix bogus signatures: ProtocolVersion* -> const ProtocolVersion& * Cosmetic changes, many files: - fixed indentation, broke long lines. - removed unnecessary qpid:: prefixes. * broker/BrokerAdapter,BrokerChannel: Merged BrokerAdapter into broker::channel. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@502767 13f79535-47bb-0310-9956-ffa450edef68
* * Added ClientAdapter - client side ChannelAdapter. Updated client side.Alan Conway2007-01-295-16/+13
| | | | | | | | | | | | | | | | * Moved ChannelAdapter initialization from ctor to init(), updated broker side. * Improved various exception messages with boost::format messages. * Removed unnecssary virtual inheritance. * Widespread: fixed incorrect non-const ProtocolVersion& parameters. * Client API: pass channels by reference, not pointer. * codegen: - MethodBodyClass.h.templ: Added CLASS_ID, METHOD_ID and isA() template. - Various: fixed non-const ProtocolVersion& parameters. * cpp/bootstrap: Allow config arguments with -build. * cpp/gen/Makefile.am: Merged codegen fixes from trunk. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501087 13f79535-47bb-0310-9956-ffa450edef68
* * MethodContext: added invocation context for methods. Can carry RequestIdAlan Conway2007-01-182-2/+2
| | | | | | | | | as well as ChannelId. * gentools: AMQP_Clinet|ServerOperations and *Body::invoke(): pass MethodContex instead of channel ID. * All *HandlerImpl classe: use MethodContext instead of channel ID. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497511 13f79535-47bb-0310-9956-ffa450edef68
* * Client & broker using Requester/Responder to manage request/response IDs.Alan Conway2007-01-151-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@496511 13f79535-47bb-0310-9956-ffa450edef68
* Use amqp 0-9 request/response framing in broker and client.Alan Conway2007-01-122-10/+9
| | | | | | | | | | Updated: framing, client, broker, generated code. The new request/response data (request-id etc.) is not yet being used, we are simply running the old Basic protocol over request/response frames. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@495679 13f79535-47bb-0310-9956-ffa450edef68
* part 2 from andrew, issued commit at wrong level. This change requires aCarl C. Trieloff2007-01-092-3/+2
| | | | | | | | | ./bootstap git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494525 13f79535-47bb-0310-9956-ffa450edef68
* Merged changes from trunk to fix C++ client version 0-0 bug. Changes to ↵Kim van der Riet2007-01-055-3/+18
| | | | | | cpp/lib/common/Makefile.am, so bootstrap, configure required to remake Makefiels. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@493020 13f79535-47bb-0310-9956-ffa450edef68
* Added include for new qpid::framing::Content class to C++ templateKim van der Riet2007-01-041-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492659 13f79535-47bb-0310-9956-ffa450edef68
* Multi version support part 2.Carl C. Trieloff2006-12-206-3/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489214 13f79535-47bb-0310-9956-ffa450edef68
* [For Andrew Stitcher] Made the generator generate non-virtual inheritance; ↵Kim van der Riet2006-12-193-3/+3
| | | | | | it doesn't create a noticeable speed up in itself, but it's not needed where it's used. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488801 13f79535-47bb-0310-9956-ffa450edef68
* Added additional files AMQP_HighestVersion.h/.cpp to identify the highest ↵Kim van der Riet2006-12-181-0/+31
| | | | | | available version for client use. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488304 13f79535-47bb-0310-9956-ffa450edef68
* Revised generation of includes inline with latst build changes.Gordon Sim2006-12-019-24/+24
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@481221 13f79535-47bb-0310-9956-ffa450edef68
* Updates and bugfixesKim van der Riet2006-11-2116-503/+335
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477844 13f79535-47bb-0310-9956-ffa450edef68
* Fixes to the generated C++ code and templatesKim van der Riet2006-11-143-19/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@474866 13f79535-47bb-0310-9956-ffa450edef68
* update Apache licenses to the current versionStephen Vinoski2006-11-1014-182/+224
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473568 13f79535-47bb-0310-9956-ffa450edef68
* Latest version of gentools. Java AmqpConstants class added which allows in ↵Kim van der Riet2006-11-107-38/+103
| | | | | | | | changes in the <constant> declarations in spec from version to version. C++ AMQP_Constants.h file still incomplete. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@473472 13f79535-47bb-0310-9956-ffa450edef68
* Gentools C++ generator generation for AMQP_ClientOperations.h and ↵Kim van der Riet2006-11-022-26/+39
| | | | | | 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
* Updated code generator to produce ServerOperations class. Other minor fixes ↵Kim van der Riet2006-11-011-6/+17
| | | | | | in generator. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@469929 13f79535-47bb-0310-9956-ffa450edef68
* First draft of C++ generator creating MethodBody classes divided into C++ ↵Kim van der Riet2006-10-301-46/+31
| | | | | | namespaces by version. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@469247 13f79535-47bb-0310-9956-ffa450edef68
* Some code tidy-up and debugging; first C++ templates and implementation of ↵Kim van der Riet2006-10-2513-0/+730
most of C++ MethodBody class generation methods. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@467750 13f79535-47bb-0310-9956-ffa450edef68