summaryrefslogtreecommitdiff
path: root/gentools/src
Commit message (Collapse)AuthorAgeFilesLines
* Merged revisions 492756 via svnmerge from Alan Conway2007-03-091-1/+1
| | | | | | | | | | | | | https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid ........ r492756 | kpvdr | 2007-01-04 16:30:39 -0500 (Thu, 04 Jan 2007) | 1 line Fixed C++ client sending protocol version 0-0 over the wire. Minor fixes and tidy-up in related code. ........ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@516485 13f79535-47bb-0310-9956-ffa450edef68
* First backmerge from trunk to 0-9 branch for Java. Not all java tests ↵Kim van der Riet2007-02-143-44/+483
| | | | | | passing yet git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@507672 13f79535-47bb-0310-9956-ffa450edef68
* * gentools/templ.cpp/*Proxy*, CppGenerator.java: Changes to ProxyAlan Conway2007-02-131-57/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-16/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* * Remove debug println statement.Alan Conway2007-01-311-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501918 13f79535-47bb-0310-9956-ffa450edef68
* * gentools/AmqpFlagMa.javap: Refactor repetative set/get code into FlagMap.Alan Conway2007-01-313-29/+45
| | | | | | | | | | * gentools/AmqpMethod.java: Fixed algorithm for deducing whether a method is a request or a response. Version-aware isResponseFlagMap. * gentools/CppGenerator.java: Use new response flag. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501890 13f79535-47bb-0310-9956-ffa450edef68
* Small codegen code tidy-upKim van der Riet2007-01-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501470 13f79535-47bb-0310-9956-ffa450edef68
* Separated the errata in the XML spec file and put them into a file ↵Kim van der Riet2007-01-303-4/+3
| | | | | | amqp-errara.0-9.xml. Added this file to the codegen. Fixed minor codegen bug in which fields in merged classes have repeating ordinal numbers. Added missing mandatory field to Message.Transger in the new errata file. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@501456 13f79535-47bb-0310-9956-ffa450edef68
* * Added ClientAdapter - client side ChannelAdapter. Updated client side.Alan Conway2007-01-291-1/+1
| | | | | | | | | | | | | | | | * 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
* Fixed bug in generated MethodBody toString() expressions for longstr types ↵Kim van der Riet2007-01-231-1/+2
| | | | | | in which a null value resulted in an NPE. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@499046 13f79535-47bb-0310-9956-ffa450edef68
* Last big refactoring for 0-9 framing. Still need additional tests &Alan Conway2007-01-191-6/+6
| | | | | | | | | | | | | | | | debugging but the overall structure is all in place. * configure.ac: Added -Wno_virtual_overload warning * ChannelTest.cpp, MessageBuilderTest.cpp: Fixed virtual overload warnings. * ChannelAdapter.cpp: Common base for client/broker adapters. Creates invocation context, handles request/resposne IDs. * CppGenerator.java: - Proxies send methods using MethodContext. * Various .h files: removed unnecessary #includes, added to requred .cpp files. * ConnectionContext: renamed from SessionContext. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497963 13f79535-47bb-0310-9956-ffa450edef68
* Changed Content to use ByteBuffer, added Message.Transfer and Message.Cancel ↵Kim van der Riet2007-01-181-2/+10
| | | | | | handlers git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@497585 13f79535-47bb-0310-9956-ffa450edef68
* * MethodContext: added invocation context for methods. Can carry RequestIdAlan Conway2007-01-181-5/+5
| | | | | | | | | 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
* Use amqp 0-9 request/response framing in broker and client.Alan Conway2007-01-122-40/+36
| | | | | | | | | | 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
* version back merge from trunk rev 494553.Carl C. Trieloff2007-01-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494559 13f79535-47bb-0310-9956-ffa450edef68
* Added Exchange.Bound and Exchange.BoundOk in additional xml fileKim van der Riet2007-01-091-11/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@494542 13f79535-47bb-0310-9956-ffa450edef68
* Merged changes from trunk to fix C++ client version 0-0 bug. Changes to ↵Kim van der Riet2007-01-051-1/+1
| | | | | | 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
* Fixed some compile errors:Alan Conway2007-01-041-1320/+1320
| | | | | | | | - Fix error in code generator for decoding timestamps. - Add dummy op<< for framing::Content git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492713 13f79535-47bb-0310-9956-ffa450edef68
* Changes to lick off the 0-9 generation. Note that the new spec file ↵Kim van der Riet2007-01-041-2/+2
| | | | | | specs/amqp-nogen.0-9.xml causes the classes basic, file and stream not to generate. There are plenty of compile errors to sort through... git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/branches/qpid.0-9@492634 13f79535-47bb-0310-9956-ffa450edef68
* Added ability for code generator to omit elements from the XML specificationKim van der Riet2007-01-0317-57/+245
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@492280 13f79535-47bb-0310-9956-ffa450edef68
* Additional changes to support new Java AMQP version code, some C++ tidy-up ↵Kim van der Riet2006-12-223-66/+58
| | | | | | as well. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489704 13f79535-47bb-0310-9956-ffa450edef68
* Multi version support part 2.Carl C. Trieloff2006-12-201-12/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@489214 13f79535-47bb-0310-9956-ffa450edef68
* Code tidy-up in code generatorKim van der Riet2006-12-1913-321/+180
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488799 13f79535-47bb-0310-9956-ffa450edef68
* Added additional files AMQP_HighestVersion.h/.cpp to identify the highest ↵Kim van der Riet2006-12-182-1/+6
| | | | | | available version for client use. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@488304 13f79535-47bb-0310-9956-ffa450edef68
* Fixed lack of refs in some generated C++ files; code comments and other ↵Kim van der Riet2006-12-153-67/+65
| | | | | | minor changes. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@487623 13f79535-47bb-0310-9956-ffa450edef68
* Added generation for (yet to be written) Content class which will be a part ↵Kim van der Riet2006-12-112-0/+10
| | | | | | of the 0-9 AMQP spec. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@485698 13f79535-47bb-0310-9956-ffa450edef68
* Added check for non-existent domains - throws Exception instead of NPE.Kim van der Riet2006-12-042-6/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@482194 13f79535-47bb-0310-9956-ffa450edef68
* check for unknown typesRafael H. Schloming2006-12-011-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@481381 13f79535-47bb-0310-9956-ffa450edef68
* Revised generation of includes inline with latst build changes.Gordon Sim2006-12-011-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@481221 13f79535-47bb-0310-9956-ffa450edef68
* Changes to allow gentools to be used from a makefileKim van der Riet2006-11-221-110/+182
| | | | git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@478234 13f79535-47bb-0310-9956-ffa450edef68
* Directory reorganizationKim van der Riet2006-11-2131-0/+6255
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@477845 13f79535-47bb-0310-9956-ffa450edef68