http://git-wip-us.apache.org/repos/asf/qpid-site/blob/c3ab60f6/content/releases/qpid-cpp-1.39.0/messaging-api/book/section-amqp0-10-mapping.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-cpp-1.39.0/messaging-api/book/section-amqp0-10-mapping.html b/content/releases/qpid-cpp-1.39.0/messaging-api/book/section-amqp0-10-mapping.html new file mode 100644 index 0000000..14e59ec --- /dev/null +++ b/content/releases/qpid-cpp-1.39.0/messaging-api/book/section-amqp0-10-mapping.html @@ -0,0 +1,307 @@ +<!DOCTYPE html> +<!-- + - + - Licensed to the Apache Software Foundation (ASF) under one + - or more contributor license agreements. See the NOTICE file + - distributed with this work for additional information + - regarding copyright ownership. The ASF licenses this file + - to you under the Apache License, Version 2.0 (the + - "License"); you may not use this file except in compliance + - with the License. You may obtain a copy of the License at + - + - http://www.apache.org/licenses/LICENSE-2.0 + - + - Unless required by applicable law or agreed to in writing, + - software distributed under the License is distributed on an + - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + - KIND, either express or implied. See the License for the + - specific language governing permissions and limitations + - under the License. + - +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>1.16. The AMQP 0-10 mapping - Apache Qpid™</title> + <meta http-equiv="X-UA-Compatible" content="IE=edge"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <link rel="stylesheet" href="/site.css" type="text/css" async="async"/> + <link rel="stylesheet" href="/deferred.css" type="text/css" defer="defer"/> + <script type="text/javascript">var _deferredFunctions = [];</script> + <script type="text/javascript" src="/deferred.js" defer="defer"></script> + <!--[if lte IE 8]> + <link rel="stylesheet" href="/ie.css" type="text/css"/> + <script type="text/javascript" src="/html5shiv.js"></script> + <![endif]--> + + <!-- Redirects for `go get` and godoc.org --> + <meta name="go-import" + content="qpid.apache.org git https://git-wip-us.apache.org/repos/asf/qpid-proton.git"/> + <meta name="go-source" + content="qpid.apache.org +https://github.com/apache/qpid-proton/blob/go1/README.md +https://github.com/apache/qpid-proton/tree/go1{/dir} +https://github.com/apache/qpid-proton/blob/go1{/dir}/{file}#L{line}"/> + </head> + <body> + <div id="-content"> + <div id="-top" class="panel"> + <a id="-menu-link"><img width="16" height="16" src="" alt="Menu"/></a> + + <a id="-search-link"><img width="22" height="16" src="" alt="Search"/></a> + + <ul id="-global-navigation"> + <li><a id="-logotype" href="/index.html">Apache Qpid<sup>™</sup></a></li> + <li><a href="/documentation.html">Documentation</a></li> + <li><a href="/download.html">Download</a></li> + <li><a href="/discussion.html">Discussion</a></li> + </ul> + </div> + + <div id="-menu" class="panel" style="display: none;"> + <div class="flex"> + <section> + <h3>Project</h3> + + <ul> + <li><a href="/overview.html">Overview</a></li> + <li><a href="/components/index.html">Components</a></li> + <li><a href="/releases/index.html">Releases</a></li> + </ul> + </section> + + <section> + <h3>Messaging APIs</h3> + + <ul> + <li><a href="/proton/index.html">Qpid Proton</a></li> + <li><a href="/components/jms/index.html">Qpid JMS</a></li> + <li><a href="/components/messaging-api/index.html">Qpid Messaging API</a></li> + </ul> + </section> + + <section> + <h3>Servers and tools</h3> + + <ul> + <li><a href="/components/broker-j/index.html">Broker-J</a></li> + <li><a href="/components/cpp-broker/index.html">C++ broker</a></li> + <li><a href="/components/dispatch-router/index.html">Dispatch router</a></li> + </ul> + </section> + + <section> + <h3>Resources</h3> + + <ul> + <li><a href="/dashboard.html">Dashboard</a></li> + <li><a href="https://cwiki.apache.org/confluence/display/qpid/Index">Wiki</a></li> + <li><a href="/resources.html">More resources</a></li> + </ul> + </section> + </div> + </div> + + <div id="-search" class="panel" style="display: none;"> + <form action="http://www.google.com/search" method="get"> + <input type="hidden" name="sitesearch" value="qpid.apache.org"/> + <input type="text" name="q" maxlength="255" autofocus="autofocus" tabindex="1"/> + <button type="submit">Search</button> + <a href="/search.html">More ways to search</a> + </form> + </div> + + <div id="-middle" class="panel"> + <ul id="-path-navigation"><li><a href="/index.html">Home</a></li><li><a href="/releases/index.html">Releases</a></li><li><a href="/releases/qpid-cpp-1.39.0/index.html">Qpid C++ 1.39.0</a></li><li><a href="/releases/qpid-cpp-1.39.0/messaging-api/book/index.html">Using the Qpid Messaging API</a></li><li>1.16. The AMQP 0-10 mapping</li></ul> + + <div id="-middle-content"> + <div class="docbook"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">1.16. The AMQP 0-10 mapping</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="ch01s15.html">Prev</a> </td><th align="center" width="60%">Chapter 1. Using the Qpid Messaging API</th><td align="right" width="20%"> <a accesskey="n" href="Message-Groups-Guide.html">Next</a></td></tr></table><hr /></div><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="section-amqp0-10-mapping"></a>1.16. The AMQP 0-10 mapping</h2></div></div></div><p> + This section describes the AMQP 0-10 mapping for the Qpid + Messaging API. + </p><p> + The interaction with the broker triggered by creating a sender + or receiver depends on what the specified address resolves + to. Where the node type is not specified in the address, the + client queries the broker to determine whether it refers to a + queue or an exchange. + </p><p> + When sending to a queue, the queue's name is set as the + routing key and the message is transfered to the default (or + nameless) exchange. When sending to an exchange, the message + is transfered to that exchange and the routing key is set to + the message subject if one is specified. A default subject may + be specified in the target address. The subject may also be + set on each message individually to override the default if + required. In each case any specified subject is also added as + a qpid.subject entry in the application-headers field of the + message-properties. + </p><p> + When receiving from a queue, any subject in the source address + is currently ignored. The client sends a message-subscribe + request for the queue in question. The accept-mode is + determined by the reliability option in the link properties; + for unreliable links the accept-mode is none, for reliable + links it is explicit. The default for a queue is reliable. The + acquire-mode is determined by the value of the mode option. If + the mode is set to browse the acquire mode is not-acquired, + otherwise it is set to pre-acquired. The exclusive and + arguments fields in the message-subscribe command can be + controlled using the x-subscribe map. + </p><p> + When receiving from an exchange, the client creates a + subscription queue and binds that to the exchange. The + subscription queue's arguments can be specified using the + x-declare map within the link properties. The reliability + option determines most of the other parameters. If the + reliability is set to unreliable then an auto-deleted, + exclusive queue is used meaning that if the client or + connection fails messages may be lost. For exactly-once the + queue is not set to be auto-deleted. The durability of the + subscription queue is determined by the durable option in the + link properties. The binding process depends on the type of + the exchange the source address resolves to. + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> + For a topic exchange, if no subject is specified and no + x-bindings are defined for the link, the subscription + queue is bound using a wildcard matching any routing key + (thus satisfying the expectation that any message sent to + that address will be received from it). If a subject is + specified in the source address however, it is used for + the binding key (this means that the subject in the source + address may be a binding pattern including wildcards). + </p></li><li class="listitem"><p> + For a fanout exchange the binding key is irrelevant to + matching. A receiver created from a source address that + resolves to a fanout exchange receives all messages + sent to that exchange regardless of any subject the source + address may contain. An x-bindings element in the link + properties should be used if there is any need to set the + arguments to the bind. + </p></li><li class="listitem"><p> + For a direct exchange, the subject is used as the binding + key. If no subject is specified an empty string is used as + the binding key. + </p></li><li class="listitem"><p> + For a headers exchange, if no subject is specified the + binding arguments simply contain an x-match entry and no + other entries, causing all messages to match. If a subject + is specified then the binding arguments contain an x-match + entry set to all and an entry for qpid.subject whose value + is the subject in the source address (this means the + subject in the source address must match the message + subject exactly). For more control the x-bindings element + in the link properties must be used. + </p></li><li class="listitem"><p> + For the XML exchange,<a class="footnote" href="#ftn.idm140612067709360" id="idm140612067709360"><sup class="footnote">[12]</sup></a> if a subject is specified it is + used as the binding key and an XQuery is defined that + matches any message with that value for + qpid.subject. Again this means that only messages whose + subject exactly match that specified in the source address + are received. If no subject is specified then the empty + string is used as the binding key with an xquery that will + match any message (this means that only messages with an + empty string as the routing key will be received). For more + control the x-bindings element in the link properties must + be used. A source address that resolves to the XML + exchange must contain either a subject or an x-bindings + element in the link properties as there is no way at + present to receive any message regardless of routing key. + </p></li></ul></div><p> + If an x-bindings list is present in the link options a binding + is created for each element within that list. Each element is + a nested map that may contain values named queue, exchange, + key or arguments. If the queue value is absent the queue name + the address resolves to is implied. If the exchange value is + absent the exchange name the address resolves to is implied. + </p><p>The following table shows how Qpid Messaging API message + properties are mapped to AMQP 0-10 message properties and + delivery properties. In this table <code class="varname">msg</code> + refers to the Message class defined in the Qpid Messaging API, + <code class="varname">mp</code> refers to an AMQP 0-10 + <code class="varname">message-properties</code> struct, and + <code class="varname">dp</code> refers to an AMQP 0-10 + <code class="varname">delivery-properties</code> struct.</p><div class="table"><a id="table-amqp0-10-message-properties"></a><p class="title"><strong>Table 1.9. Mapping to AMQP 0-10 Message Properties</strong></p><div class="table-contents"><table border="1" class="table" summary="Mapping to AMQP 0-10 Message Properties" width="100%"><colgroup><col /><col /><col /></colgroup><thead><tr><th>Python API</th><th>C++ API + <a class="footnote" href="#ftn.idm140612067697312" id="idm140612067697312"><sup class="footnote">[a]</sup></a> + </th><th>AMQP 0-10 Property<a class="footnote" href="#ftn.idm140612067695520" id="idm140612067695520"><sup class="footnote">[b]</sup></a></th></tr></thead><tbody><tr><td>msg.id</td><td>msg.{get,set}MessageId()</td><td>mp.message_id</td></tr><tr><td>msg.subject</td><td>msg.{get,set}Subject()</td><td>mp.application_headers["qpid.subject"]</td></tr><tr><td>msg.user_id</td><td>msg.{get,set}UserId()</td><td>mp.user_id</td></tr><tr><td>msg.reply_to</td><td>msg.{get,set}ReplyTo()</td><td>mp.reply_to<a class="footnote" href="#ftn.idm140612067688384" id="idm140612067688384"><sup class="footnote">[c]</sup></a></td></tr><tr><td>msg.correlation_id</td><td>msg.{get,set}CorrelationId()</td><td>mp.correlation_id</td></tr><tr><td>msg.durable</td><td>msg.{get,set}Durable()</td><td>dp.delivery_mode == delivery_mode.persistent<a class="footnote" href="#ftn.idm140612067685344" id="idm140612067685344"><sup class="footnote">[d]</sup></a></td></tr><tr><td>msg.priority</td><td>msg.{get,set}Priority( )</td><td>dp.priority</td></tr><tr><td>msg.ttl</td><td>msg.{get,set}Ttl()</td><td>dp.ttl</td></tr><tr><td>msg.redelivered</td><td>msg.{get,set}Redelivered()</td><td>dp.redelivered</td></tr><tr><td>msg.properties</td><td>msg.getProperties()/msg.setProperty()</td><td>mp.application_headers</td></tr><tr><td>msg.content_type</td><td>msg.{get,set}ContentType()</td><td>mp.content_type</td></tr></tbody><tbody class="footnotes"><tr><td colspan="3"><div class="footnote" id="ftn.idm140612067697312"><p><a class="para" href="#idm140612067697312"><sup class="para">[a] </sup></a> + The .NET Binding for C++ Messaging provides all the + message and delivery properties described in the C++ API. + See <a class="xref" href="ch02s03.html#table-Dotnet-Binding-Message" title="Table 2.13. .NET Binding for the C++ Messaging API Class: Message">Table 2.13, “.NET Binding for the C++ Messaging API Class: Message”</a> . + </p></div><div class="footnote" id="ftn.idm140612067695520"><p><a class="para" href="#idm140612067695520"><sup class="para">[b] </sup></a>In these entries, <code class="literal">mp</code> refers to an AMQP message property, and <code class="literal">dp</code> refers to an AMQP delivery property.</p></div><div class="footnote" id="ftn.idm140612067688384"><p><a class="para" href="#idm140612067688384"><sup class="para">[c] </sup></a>The reply_to is converted from the protocol representation into an address.</p></div><div class="footnote" id="ftn.idm140612067685344"><p><a class="para" href="#idm140612067685344"><sup class="para">[d] </sup></a>Note that msg.durable is a boolean, not an enum.</p></div></td></tr></tbody></table></div></div><br class="table-break" /><div class="section"><div class="titlepage"><div><div><h3 class="title"><a id="section-amqp0-10-message-props"></a>1.16.1. 0-10 Message Property Keys</h3></div></div></div><p> + The QPID Messaging API also recognises special message property keys and + automatically provides a mapping to their corresponding AMQP 0-10 definitions. + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> + When sending a message, if the properties contain an entry for + <code class="literal">x-amqp-0-10.app-id</code>, its value will be used to set the + <code class="literal">message-properties.app-id</code> property in the outgoing + message. Likewise, if an incoming message has + <code class="literal">message-properties.app-id</code> set, its value can be accessed + via the <code class="literal">x-amqp-0-10.app-id</code> message property key. + </p></li><li class="listitem"><p> + When sending a message, if the properties contain an entry for + <code class="literal">x-amqp-0-10.content-encoding</code>, its value will be used to + set the <code class="literal">message-properties.content-encoding</code> property in + the outgoing message. Likewise, if an incoming message has + <code class="literal">message-properties.content-encoding</code> set, its value can be + accessed via the <code class="literal">x-amqp-0-10.content-encoding</code> message + property key. + </p></li><li class="listitem"><p> + The routing key (<code class="literal">delivery-properties.routing-key</code>) in an + incoming messages can be accessed via the + <code class="literal">x-amqp-0-10.routing-key</code> message property. + </p></li><li class="listitem"><p> + If the timestamp delivery property is set in an incoming message + (<code class="literal">delivery-properties.timestamp</code>), the timestamp value will + be made available via the <code class="literal">x-amqp-0-10.timestamp</code> message + property. + <a class="footnote" href="#ftn.idm140612067665056" id="idm140612067665056"><sup class="footnote">[13]</sup></a> + </p></li></ul></div><div class="example"><a id="idm140612067663776"></a><p class="title"><strong>Example 1.20. Accessing the AMQP 0-10 Message Timestamp in Python</strong></p><div class="example-contents"><p> + The following code fragment checks for and extracts the message timestamp from + a received message. + </p><pre class="programlisting" lang="python" xml:lang="python"> + try: + msg = receiver.fetch(timeout=1) + if "x-amqp-0-10.timestamp" in msg.properties: + print("Timestamp=%s" % str(msg.properties["x-amqp-0-10.timestamp"])) + except Empty: + pass + </pre></div></div><br class="example-break" /><div class="example"><a id="idm140612067661392"></a><p class="title"><strong>Example 1.21. Accessing the AMQP 0-10 Message Timestamp in C++</strong></p><div class="example-contents"><p> + The same example, except in C++. + </p><pre class="programlisting" lang="c++" xml:lang="c++"> + messaging::Message msg; + if (receiver.fetch(msg, messaging::Duration::SECOND*1)) { + if (msg.getProperties().find("x-amqp-0-10.timestamp") != msg.getProperties().end()) { + std::cout << "Timestamp=" << msg.getProperties()["x-amqp-0-10.timestamp"].asString() << std::endl; + } + } + </pre></div></div><br class="example-break" /></div><div class="footnotes"><br /><hr align="left" width="100" /><div class="footnote" id="ftn.idm140612067709360"><p><a class="para" href="#idm140612067709360"><sup class="para">[12] </sup></a>Note that the XML + exchange is not a standard AMQP exchange type. It is a + Qpid extension and is currently only supported by the C++ + broker.</p></div><div class="footnote" id="ftn.idm140612067665056"><p><a class="para" href="#idm140612067665056"><sup class="para">[13] </sup></a> + This special property is currently not supported by the Qpid JMS client. + </p></div></div></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="ch01s15.html">Prev</a> </td><td align="center" width="20%"><a accesskey="u" href="using-the-qpid-messaging-api.html">Up</a></td><td align="right" width="40%"> <a accesskey="n" href="Message-Groups-Guide.html">Next</a></td></tr><tr><td align="left" valign="top" width="40%">1.15. Logging </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td align="right" valign="top" width="40%"> 1.17. Using Message Groups</td></tr></table></div></div> + + <hr/> + + <ul id="-apache-navigation"> + <li><a href="http://www.apache.org/">Apache</a></li> + <li><a href="http://www.apache.org/licenses/">License</a></li> + <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li> + <li><a href="http://www.apache.org/foundation/thanks.html">Thanks!</a></li> + <li><a href="/security.html">Security</a></li> + <li><a href="http://www.apache.org/"><img id="-apache-feather" width="48" height="14" src="" alt="Apache"/></a></li> + </ul> + + <p id="-legal"> + Apache Qpid, Messaging built on AMQP; Copyright © 2015 + The Apache Software Foundation; Licensed under + the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache + License, Version 2.0</a>; Apache Qpid, Qpid, Qpid Proton, + Proton, Apache, the Apache feather logo, and the Apache Qpid + project logo are trademarks of The Apache Software + Foundation; All other marks mentioned may be trademarks or + registered trademarks of their respective owners + </p> + </div> + </div> + </div> + </body> +</html>
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/c3ab60f6/content/releases/qpid-cpp-1.39.0/messaging-api/book/using-the-qpid-messaging-api.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-cpp-1.39.0/messaging-api/book/using-the-qpid-messaging-api.html b/content/releases/qpid-cpp-1.39.0/messaging-api/book/using-the-qpid-messaging-api.html new file mode 100644 index 0000000..7714e73 --- /dev/null +++ b/content/releases/qpid-cpp-1.39.0/messaging-api/book/using-the-qpid-messaging-api.html @@ -0,0 +1,213 @@ +<!DOCTYPE html> +<!-- + - + - Licensed to the Apache Software Foundation (ASF) under one + - or more contributor license agreements. See the NOTICE file + - distributed with this work for additional information + - regarding copyright ownership. The ASF licenses this file + - to you under the Apache License, Version 2.0 (the + - "License"); you may not use this file except in compliance + - with the License. You may obtain a copy of the License at + - + - http://www.apache.org/licenses/LICENSE-2.0 + - + - Unless required by applicable law or agreed to in writing, + - software distributed under the License is distributed on an + - "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + - KIND, either express or implied. See the License for the + - specific language governing permissions and limitations + - under the License. + - +--> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> + <head> + <title>Chapter 1. Using the Qpid Messaging API - Apache Qpid™</title> + <meta http-equiv="X-UA-Compatible" content="IE=edge"/> + <meta name="viewport" content="width=device-width, initial-scale=1.0"/> + <link rel="stylesheet" href="/site.css" type="text/css" async="async"/> + <link rel="stylesheet" href="/deferred.css" type="text/css" defer="defer"/> + <script type="text/javascript">var _deferredFunctions = [];</script> + <script type="text/javascript" src="/deferred.js" defer="defer"></script> + <!--[if lte IE 8]> + <link rel="stylesheet" href="/ie.css" type="text/css"/> + <script type="text/javascript" src="/html5shiv.js"></script> + <![endif]--> + + <!-- Redirects for `go get` and godoc.org --> + <meta name="go-import" + content="qpid.apache.org git https://git-wip-us.apache.org/repos/asf/qpid-proton.git"/> + <meta name="go-source" + content="qpid.apache.org +https://github.com/apache/qpid-proton/blob/go1/README.md +https://github.com/apache/qpid-proton/tree/go1{/dir} +https://github.com/apache/qpid-proton/blob/go1{/dir}/{file}#L{line}"/> + </head> + <body> + <div id="-content"> + <div id="-top" class="panel"> + <a id="-menu-link"><img width="16" height="16" src="" alt="Menu"/></a> + + <a id="-search-link"><img width="22" height="16" src="" alt="Search"/></a> + + <ul id="-global-navigation"> + <li><a id="-logotype" href="/index.html">Apache Qpid<sup>™</sup></a></li> + <li><a href="/documentation.html">Documentation</a></li> + <li><a href="/download.html">Download</a></li> + <li><a href="/discussion.html">Discussion</a></li> + </ul> + </div> + + <div id="-menu" class="panel" style="display: none;"> + <div class="flex"> + <section> + <h3>Project</h3> + + <ul> + <li><a href="/overview.html">Overview</a></li> + <li><a href="/components/index.html">Components</a></li> + <li><a href="/releases/index.html">Releases</a></li> + </ul> + </section> + + <section> + <h3>Messaging APIs</h3> + + <ul> + <li><a href="/proton/index.html">Qpid Proton</a></li> + <li><a href="/components/jms/index.html">Qpid JMS</a></li> + <li><a href="/components/messaging-api/index.html">Qpid Messaging API</a></li> + </ul> + </section> + + <section> + <h3>Servers and tools</h3> + + <ul> + <li><a href="/components/broker-j/index.html">Broker-J</a></li> + <li><a href="/components/cpp-broker/index.html">C++ broker</a></li> + <li><a href="/components/dispatch-router/index.html">Dispatch router</a></li> + </ul> + </section> + + <section> + <h3>Resources</h3> + + <ul> + <li><a href="/dashboard.html">Dashboard</a></li> + <li><a href="https://cwiki.apache.org/confluence/display/qpid/Index">Wiki</a></li> + <li><a href="/resources.html">More resources</a></li> + </ul> + </section> + </div> + </div> + + <div id="-search" class="panel" style="display: none;"> + <form action="http://www.google.com/search" method="get"> + <input type="hidden" name="sitesearch" value="qpid.apache.org"/> + <input type="text" name="q" maxlength="255" autofocus="autofocus" tabindex="1"/> + <button type="submit">Search</button> + <a href="/search.html">More ways to search</a> + </form> + </div> + + <div id="-middle" class="panel"> + <ul id="-path-navigation"><li><a href="/index.html">Home</a></li><li><a href="/releases/index.html">Releases</a></li><li><a href="/releases/qpid-cpp-1.39.0/index.html">Qpid C++ 1.39.0</a></li><li><a href="/releases/qpid-cpp-1.39.0/messaging-api/book/index.html">Using the Qpid Messaging API</a></li><li>Chapter 1. Using the Qpid Messaging API</li></ul> + + <div id="-middle-content"> + <div class="docbook"><div class="navheader"><table summary="Navigation header" width="100%"><tr><th align="center" colspan="3">Chapter 1. Using the Qpid Messaging API</th></tr><tr><td align="left" width="20%"><a accesskey="p" href="index.html">Prev</a> </td><th align="center" width="60%"> </th><td align="right" width="20%"> <a accesskey="n" href="ch01s02.html">Next</a></td></tr></table><hr /></div><div class="chapter"><div class="titlepage"><div><div><h1 class="title"><a id="using-the-qpid-messaging-api"></a>Chapter 1. Using the Qpid Messaging API</h1></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="section"><a href="using-the-qpid-messaging-api.html#idm140612069842624">1.1. A Simple Messaging Program in C++</a></span></dt><dt><span class="section"><a href="ch01s02.html">1.2. A Simple Messaging Program in Python</a></span></dt><dt><span class="section"><a href="ch01s03.html">1.3. A Simple Messaging Program in .NET C#</a></span></dt><dt><span class="section"><a href="section-addresses.html">1.4. Addresses</a></span></dt><dd><dl><dt><span class="section"><a href="section-addresses.html#idm140612068111184">1.4.1. Address Strings</a></span></dt><dt><span class="section"><a href="section-addresses.html#idm140612068105936">1.4.2. Subjects</a></span></dt><dt><span class="section"><a href="section-addresses.html#idm140612068065424">1.4.3. Address String Options</a></span></dt><dt><span class="section"><a href="section-addresses.html#section-address-string-bnf">1.4.4. Address String Grammar</a></span></dt></dl></dd><dt><span class="section"><a href="replay.html">1.5. Sender Capacity and Replay</a></span></dt><dt><span class="section"><a href="prefetch.html">1.6. Receiver Capacity (Prefetch)</a></span></dt><dt><span class="section"><a href="acknowledgements.html">1.7. Acknowledging Received Messages</a></span></dt><dt><span class="section"><a href="ch01s08.html">1.8. Receiving Messages from Multiple Sources</a></span></dt><dt><span class="section"><a href="ch01s09.html">1.9. Transactions</a></span></dt><dt><span class="section"><a href="connections.html">1.10. Connections</a></span></dt><dd><dl><dt><span class="section"><a href="connections.html#connection-url">1.10.1. Connection URLs</a></span></dt><dt><span class="section"><a href="connections.html#connection-options">1.10.2. Connection Options</a></span></dt></dl></dd><dt><span class="section"><a href="section-Maps.html">1.11. Maps and Lists in Message Content</a></span></dt><dd><dl><dt><span class="section"><a href="section-Maps.html#section-Python-Maps">1.11.1. Qpid Maps and Lists in Python</a></span></dt><dt><span class="section"><a href="section-Maps.html#section-cpp-Maps">1.11.2. Qpid Maps and Lists in C++</a></span></dt><dt><span class="section"><a href="section-Maps.html#section-dotnet-Maps">1.11.3. Qpid Maps and Lists in .NET</a></span></dt></dl></dd><dt><span class="section"><a href ="ch01s12.html">1.12. The Request / Response Pattern</a></span></dt><dt><span class="section"><a href="ch01s13.html">1.13. Performance Tips</a></span></dt><dt><span class="section"><a href="ch01s14.html">1.14. Cluster Failover</a></span></dt><dt><span class="section"><a href="ch01s15.html">1.15. Logging</a></span></dt><dd><dl><dt><span class="section"><a href="ch01s15.html#idm140612067732448">1.15.1. Logging in C++</a></span></dt><dt><span class="section"><a href="ch01s15.html#idm140612067727440">1.15.2. Logging in Python</a></span></dt></dl></dd><dt><span class="section"><a href="section-amqp0-10-mapping.html">1.16. The AMQP 0-10 mapping</a></span></dt><dd><dl><dt><span class="section"><a href="section-amqp0-10-mapping.html#section-amqp0-10-message-props">1.16.1. 0-10 Message Property Keys</a></span></dt></dl></dd><dt><span class="section"><a href="Message-Groups-Guide.html">1.17. Using Message Groups</a></span></dt><dd><dl><dt><span class="section"><a href="Message-Groups-Guide.ht ml#messagegroups-setup">1.17.1. Creating Message Group Queues</a></span></dt><dt><span class="section"><a href="Message-Groups-Guide.html#messagegroups-sending">1.17.2. Sending Grouped Messages</a></span></dt><dt><span class="section"><a href="Message-Groups-Guide.html#messagegroups-receiving">1.17.3. Receiving Grouped Messages</a></span></dt></dl></dd></dl></div><p>The Qpid Messaging API is quite simple, consisting of only a + handful of core classes. + </p><div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><p> + A <em class="firstterm">message</em> consists of a standard set + of fields (e.g. <code class="literal">subject</code>, + <code class="literal">reply-to</code>), an application-defined set of + properties, and message content (the main body of the + message). + </p></li><li class="listitem"><p> + A <em class="firstterm">connection</em> represents a network + connection to a remote endpoint. + </p></li><li class="listitem"><p> + A <em class="firstterm">session</em> provides a sequentially + ordered context for sending and receiving + <span class="emphasis"><em>messages</em></span>. A session is obtained from a + connection. + </p></li><li class="listitem"><p> + A <em class="firstterm">sender</em> sends messages to a target + using the <code class="literal">sender.send</code> method. A sender is + obtained from a session for a given target address. + </p></li><li class="listitem"><p> + A <em class="firstterm">receiver</em> receives messages from a + source using the <code class="literal">receiver.fetch</code> method. + A receiver is obtained from a session for a given source + address. + </p></li></ul></div><p> + The following sections show how to use these classes in a + simple messaging program. + </p><div class="section"><div class="titlepage"><div><div><h2 class="title"><a id="idm140612069842624"></a>1.1. A Simple Messaging Program in C++</h2></div></div></div><p>The following C++ program shows how to create a connection, + create a session, send messages using a sender, and receive + messages using a receiver.</p><div class="example"><a id="idm140612069910464"></a><p class="title"><strong>Example 1.1. "Hello world!" in C++</strong></p><div class="example-contents"><pre class="programlisting" lang="c++" xml:lang="c++"> + #include <qpid/messaging/Connection.h> + #include <qpid/messaging/Message.h> + #include <qpid/messaging/Receiver.h> + #include <qpid/messaging/Sender.h> + #include <qpid/messaging/Session.h> + + #include <iostream> + + using namespace qpid::messaging; + + int main(int argc, char** argv) { + std::string broker = argc > 1 ? argv[1] : "localhost:5672"; + std::string address = argc > 2 ? argv[2] : "amq.topic"; + std::string connectionOptions = argc > 3 ? argv[3] : ""; + + Connection connection(broker, connectionOptions); + try { + connection.open(); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-open" id="hello-cpp-open">(1)</a> + Session session = connection.createSession(); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-session" id="hello-cpp-session">(2)</a> + + Receiver receiver = session.createReceiver(address); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-receiver" id="hello-cpp-receiver">(3)</a> + Sender sender = session.createSender(address); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-sender" id="hello-cpp-sender">(4)</a> + + sender.send(Message("Hello world!")); + + Message message = receiver.fetch(Duration::SECOND * 1); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-fetch" id="hello-cpp-fetch">(5)</a> + std::cout << message.getContent() << std::endl; + session.acknowledge(); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-acknowledge" id="hello-cpp-acknowledge">(6)</a> + + connection.close(); <a class="co" href="using-the-qpid-messaging-api.html#callout-cpp-close" id="hello-cpp-close">(7)</a> + return 0; + } catch(const std::exception& error) { + std::cerr << error.what() << std::endl; + connection.close(); + return 1; + } + }</pre><div class="calloutlist"><table border="0" summary="Callout list"><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-open"></a><a href="#hello-cpp-open">(1)</a> </p></td><td align="left" valign="top"><p>Establishes the connection with the messaging broker.</p></td></tr><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-session"></a><a href="#hello-cpp-session">(2)</a> </p></td><td align="left" valign="top"><p>Creates a session object on which messages will be sent and received.</p></td></tr><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-receiver"></a><a href="#hello-cpp-receiver">(3)</a> </p></td><td align="left" valign="top"><p>Creates a receiver that receives messages from the given address.</p></td></tr><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-sender"></a><a href="#hello-cpp-sender">(4)</a> </p></td><td align="left" valign="top"><p>Creates a sender that sends to the given address.</p></td></tr>< tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-fetch"></a><a href="#hello-cpp-fetch">(5)</a> </p></td><td align="left" valign="top"><p>Receives the next message. The duration is optional, if omitted, will wait indefinitely for the next message.</p></td></tr><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-acknowledge"></a><a href="#hello-cpp-acknowledge">(6)</a> </p></td><td align="left" valign="top"><p>Acknowledges receipt of all fetched messages on the + session. This informs the broker that the messages were + transferred and processed by the client successfully.</p></td></tr><tr><td align="left" valign="top" width="5%"><p><a id="callout-cpp-close"></a><a href="#hello-cpp-close">(7)</a> </p></td><td align="left" valign="top"><p>Closes the connection, all sessions managed by the connection, and all senders and receivers managed by each session.</p></td></tr></table></div></div></div><br class="example-break" /></div></div><div class="navfooter"><hr /><table summary="Navigation footer" width="100%"><tr><td align="left" width="40%"><a accesskey="p" href="index.html">Prev</a> </td><td align="center" width="20%"> </td><td align="right" width="40%"> <a accesskey="n" href="ch01s02.html">Next</a></td></tr><tr><td align="left" valign="top" width="40%">Using the Qpid Messaging API </td><td align="center" width="20%"><a accesskey="h" href="index.html">Home</a></td><td align="right" valign="top" width="40%"> 1.2. A Simple Messaging Program in Python</td></tr></table ></div></div> + + <hr/> + + <ul id="-apache-navigation"> + <li><a href="http://www.apache.org/">Apache</a></li> + <li><a href="http://www.apache.org/licenses/">License</a></li> + <li><a href="http://www.apache.org/foundation/sponsorship.html">Sponsorship</a></li> + <li><a href="http://www.apache.org/foundation/thanks.html">Thanks!</a></li> + <li><a href="/security.html">Security</a></li> + <li><a href="http://www.apache.org/"><img id="-apache-feather" width="48" height="14" src="" alt="Apache"/></a></li> + </ul> + + <p id="-legal"> + Apache Qpid, Messaging built on AMQP; Copyright © 2015 + The Apache Software Foundation; Licensed under + the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache + License, Version 2.0</a>; Apache Qpid, Qpid, Qpid Proton, + Proton, Apache, the Apache feather logo, and the Apache Qpid + project logo are trademarks of The Apache Software + Foundation; All other marks mentioned may be trademarks or + registered trademarks of their respective owners + </p> + </div> + </div> + </div> + </body> +</html> http://git-wip-us.apache.org/repos/asf/qpid-site/blob/c3ab60f6/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Address_8h_source.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Address_8h_source.html b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Address_8h_source.html new file mode 100755 index 0000000..963d8d1 --- /dev/null +++ b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Address_8h_source.html @@ -0,0 +1,110 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.13"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>Qpid C++ Messaging API: qpid/messaging/Address.h Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtreedata.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Qpid C++ Messaging API +  <span id="projectnumber">1.39.0</span> + </div> + </td> + <td> <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> +</td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.13 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + <div id="nav-sync" class="sync"></div> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('Address_8h_source.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">Address.h</div> </div> +</div><!--header--> +<div class="contents"> +<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef QPID_MESSAGING_ADDRESS_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define QPID_MESSAGING_ADDRESS_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div><div class= "line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * </span></div><div class="line"><a name= "l00014"></a><span class="lineno"> 14</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * </span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "qpid/messaging/ImportExport.h"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "qpid/messaging/exceptions.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span clas s="preprocessor">#include "qpid/types/Variant.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <ostream></span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceqpid.html">qpid</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>messaging {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <spa n class="keyword">class </span>AddressImpl;</div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="classqpid_1_1messaging_1_1Address.html"> 122</a></span> <span class="keyword">class </span>QPID_MESSAGING_CLASS_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Address.html">Address</a></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> {</div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span>  QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Address.html">Address</a>();</div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span>  QPID_MESSAGING_EXTERN Address(<span class="keyword">const</span> std::string& address);</div><div c lass="line"><a name="l00127"></a><span class="lineno"> 127</span>  QPID_MESSAGING_EXTERN Address(<span class="keyword">const</span> std::string& name, <span class="keyword">const</span> std::string& subject,</div><div class="line"><a name="l00128"></a><span class="lineno"> 128</span>  <span class="keyword">const</span> qpid::types::Variant::Map& options, <span class="keyword">const</span> std::string& type = <span class="stringliteral">""</span>);</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  QPID_MESSAGING_EXTERN Address(<span class="keyword">const</span> Address& address);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  QPID_MESSAGING_EXTERN ~Address();</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  QPID_MESSAGING_EXTERN Address& operator=(<span class="keyword">const</span> Address& ;);</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  QPID_MESSAGING_EXTERN <span class="keyword">const</span> std::string& getName() <span class="keyword">const</span>;</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> setName(<span class="keyword">const</span> std::string&);</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  QPID_MESSAGING_EXTERN <span class="keyword">const</span> std::string& getSubject() <span class="keyword">const</span>;</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> setSubject(<span class="keyword">const</span> std::string&);</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span>  QPID_MESSAGING_EXTERN <span class="keyword">const</span> qpid::types ::Variant::Map& getOptions() <span class="keyword">const</span>;</div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  QPID_MESSAGING_EXTERN qpid::types::Variant::Map& getOptions();</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> setOptions(<span class="keyword">const</span> qpid::types::Variant::Map&);</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> </div><div class="line"><a name="l00140"></a><span class="lineno"> 140</span>  QPID_MESSAGING_EXTERN std::string getType() <span class="keyword">const</span>;</div><div class="line"><a name="l00149"></a><span class="lineno"> 149</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> setType(<span class="keyword">const</span> std::string&);</div><div class="line"><a name="l00150"></a><span class="lineno"> 150</span> </div ><div class="line"><a name="l00151"></a><span class="lineno"> >151</span>  QPID_MESSAGING_EXTERN std::string str() <span >class="keyword">const</span>;</div><div class="line"><a >name="l00152"></a><span class="lineno"> 152</span>  >QPID_MESSAGING_EXTERN <span class="keyword">operator</span> bool() <span >class="keyword">const</span>;</div><div class="line"><a >name="l00153"></a><span class="lineno"> 153</span>  >QPID_MESSAGING_EXTERN <span class="keywordtype">bool</span> operator !() ><span class="keyword">const</span>;</div><div class="line"><a >name="l00154"></a><span class="lineno"> 154</span>  <span >class="keyword">private</span>:</div><div class="line"><a >name="l00155"></a><span class="lineno"> 155</span>  AddressImpl* >impl;</div><div class="line"><a name="l00156"></a><span class="lineno"> >156</span>  <span class="keyword">friend</span> <span >class="keyword">class </span>AddressImpl;</div><div class="line"><a >name="l00157"></a><span cl ass="lineno"> 157</span> };</div><div class="line"><a name="l00158"></a><span class="lineno"> 158</span> </div><div class="line"><a name="l00159"></a><span class="lineno"> 159</span> <span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l00160"></a><span class="lineno"> 160</span> QPID_MESSAGING_EXTERN std::ostream& operator<<(std::ostream& out, <span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Address.html">Address</a>& address);</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00163"></a><span class="lineno"> 163</span> }} <span class="comment">// namespace qpid::messaging</span></div><div class="line"><a name="l00164"></a><span class="lineno"> 164</span> </div><div class="line"><a name="l00165"></a><span class="lineno"> 165</span> <span class="preprocessor">#endif </span></div><div class="ttc" id="classqpid_1_1messaging_1_1Address_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1Address.html">qpid::messaging::Address</a></div><div class="ttdef"><b>Definition:</b> Address.h:122</div></div> +<div class="ttc" id="namespaceqpid_html"><div class="ttname"><a href="namespaceqpid.html">qpid</a></div><div class="ttdef"><b>Definition:</b> Address.h:32</div></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_13a1f016b7e4029ce6d63f46085f9ca8.html">qpid</a></li><li class="navelem"><a class="el" href="dir_20ca349f353d950391945791158d5618.html">messaging</a></li><li class="navelem"><b>Address.h</b></li> + <li class="footer">Generated by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> + </ul> +</div> +</body> +</html> http://git-wip-us.apache.org/repos/asf/qpid-site/blob/c3ab60f6/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Connection_8h_source.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Connection_8h_source.html b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Connection_8h_source.html new file mode 100755 index 0000000..05f9a62 --- /dev/null +++ b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Connection_8h_source.html @@ -0,0 +1,114 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.13"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>Qpid C++ Messaging API: qpid/messaging/Connection.h Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtreedata.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Qpid C++ Messaging API +  <span id="projectnumber">1.39.0</span> + </div> + </td> + <td> <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> +</td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.13 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + <div id="nav-sync" class="sync"></div> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('Connection_8h_source.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">Connection.h</div> </div> +</div><!--header--> +<div class="contents"> +<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef QPID_MESSAGING_CONNECTION_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define QPID_MESSAGING_CONNECTION_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> *</span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00020"></a><s pan class="lineno"> 20</span> <span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="preprocessor">#include "qpid/messaging/ImportExport.h"</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> </div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="preprocessor">#include "qpid/messaging/Handle.h"</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span clas s="preprocessor">#include "qpid/messaging/exceptions.h"</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="preprocessor">#include "qpid/types/Variant.h"</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> </div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span> <span class="keyword">namespace </span><a class="code" href="namespaceqpid.html">qpid</a> {</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> <span class="keyword">namespace </span>messaging {</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> </div><div class="line"><a name="l00035"></a><span class="lineno "> 35</span> <span class="preprocessor">#ifndef SWIG</span></div><div class="line"><a name="l00036"></a><span class="lineno"><a class="line" href="classqpid_1_1messaging_1_1PrivateImplRef.html"> 36</a></span> <span class="keyword">template</span> <<span class="keyword">class</span>> <span class="keyword">class </span><a class="code" href="classqpid_1_1messaging_1_1PrivateImplRef.html">PrivateImplRef</a>;</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="keyword">class </span>ConnectionImpl;</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="keyword">class </span><a class="code" href="classqpid_1_1messaging_1_1Session.html">Session</a>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> </div><div class="line"><a name="l0 0045"></a><span class="lineno"><a class="line" href="classqpid_1_1messaging_1_1Connection.html"> 45</a></span> <span class="keyword">class </span>QPID_MESSAGING_CLASS_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Connection.html">Connection</a> : <span class="keyword">public</span> <a class="code" href="classqpid_1_1messaging_1_1Handle.html">qpid::messaging::Handle</a><ConnectionImpl></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> {</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span>  QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Connection.html">Connection</a>(ConnectionImpl* impl);</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  QPID_MESSAGING_EXTERN Connection(<span class="keyword">const</span> Connection&am p;);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  QPID_MESSAGING_EXTERN Connection();</div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span>  QPID_MESSAGING_EXTERN Connection(<span class="keyword">const</span> std::string& url, <span class="keyword">const</span> qpid::types::Variant::Map& options = qpid::types::Variant::Map());</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  QPID_MESSAGING_EXTERN Connection(<span class="keyword">const</span> std::string& url, <span class="keyword">const</span> std::string& options);</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span>  QPID_MESSAGING_EXTERN ~Connection();</div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  QPID_MESSAGING_EXTERN Connection& operator=(<span class="keyword">const</span> Connection&);</div><div class="line"><a name="l00 132"></a><span class="lineno"> 132</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> setOption(<span class="keyword">const</span> std::string& name, <span class="keyword">const</span> <a class="code" href="classqpid_1_1types_1_1Variant.html">qpid::types::Variant</a>& value);</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> open();</div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">bool</span> isOpen();</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">bool</span> isOpen() <span class="keyword">const</span>;</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00146"></a><span class="lineno"> 146</span>  QPID_MESSAG ING_EXTERN <span class="keywordtype">void</span> reconnect(<span class="keyword">const</span> std::string& url);</div><div class="line"><a name="l00156"></a><span class="lineno"> 156</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> reconnect();</div><div class="line"><a name="l00161"></a><span class="lineno"> 161</span>  QPID_MESSAGING_EXTERN std::string getUrl() <span class="keyword">const</span>;</div><div class="line"><a name="l00162"></a><span class="lineno"> 162</span> </div><div class="line"><a name="l00168"></a><span class="lineno"> 168</span>  QPID_MESSAGING_EXTERN <span class="keywordtype">void</span> close();</div><div class="line"><a name="l00169"></a><span class="lineno"> 169</span>  QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Session.html">Session</a> createTransactionalSession(<span class="keyword">const</span> std::string& name = std::string());</div><div class="line"><a nam e="l00170"></a><span class="lineno"> 170</span>  QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Session.html">Session</a> createSession(<span class="keyword">const</span> std::string& name = std::string());</div><div class="line"><a name="l00171"></a><span class="lineno"> 171</span> </div><div class="line"><a name="l00172"></a><span class="lineno"> 172</span>  QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Session.html">Session</a> getSession(<span class="keyword">const</span> std::string& name) <span class="keyword">const</span>;</div><div class="line"><a name="l00173"></a><span class="lineno"> 173</span>  QPID_MESSAGING_EXTERN std::string getAuthenticatedUsername();</div><div class="line"><a name="l00174"></a><span class="lineno"> 174</span> </div><div class="line"><a name="l00175"></a><span class="lineno"> 175</span> <span class="preprocessor">#ifndef SWIG</span></div><div class="li ne"><a name="l00176"></a><span class="lineno"> 176</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00177"></a><span class="lineno"> 177</span>  <span class="keyword">friend</span> <span class="keyword">class </span><a class="code" href="classqpid_1_1messaging_1_1PrivateImplRef.html">qpid::messaging::PrivateImplRef</a><Connection>;</div><div class="line"><a name="l00178"></a><span class="lineno"> 178</span> <span class="preprocessor">#endif</span></div><div class="line"><a name="l00179"></a><span class="lineno"> 179</span> };</div><div class="line"><a name="l00180"></a><span class="lineno"> 180</span> </div><div class="line"><a name="l00181"></a><span class="lineno"> 181</span> }} <span class="comment">// namespace qpid::messaging</span></div><div class="line"><a name="l00182"></a><span class="lineno"> 182</span> </div><div class="line"><a name="l00183"></a><span class="lineno"> 183</span> <span cl ass="preprocessor">#endif </span></div><div class="ttc" id="classqpid_1_1types_1_1Variant_html"><div class="ttname"><a href="classqpid_1_1types_1_1Variant.html">qpid::types::Variant</a></div><div class="ttdef"><b>Definition:</b> Variant.h:73</div></div> +<div class="ttc" id="classqpid_1_1messaging_1_1PrivateImplRef_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1PrivateImplRef.html">qpid::messaging::PrivateImplRef</a></div><div class="ttdef"><b>Definition:</b> Connection.h:36</div></div> +<div class="ttc" id="classqpid_1_1messaging_1_1Connection_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1Connection.html">qpid::messaging::Connection</a></div><div class="ttdef"><b>Definition:</b> Connection.h:45</div></div> +<div class="ttc" id="classqpid_1_1messaging_1_1Handle_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1Handle.html">qpid::messaging::Handle</a></div><div class="ttdef"><b>Definition:</b> Handle.h:39</div></div> +<div class="ttc" id="classqpid_1_1messaging_1_1Session_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1Session.html">qpid::messaging::Session</a></div><div class="ttdef"><b>Definition:</b> Session.h:49</div></div> +<div class="ttc" id="namespaceqpid_html"><div class="ttname"><a href="namespaceqpid.html">qpid</a></div><div class="ttdef"><b>Definition:</b> Address.h:32</div></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_13a1f016b7e4029ce6d63f46085f9ca8.html">qpid</a></li><li class="navelem"><a class="el" href="dir_20ca349f353d950391945791158d5618.html">messaging</a></li><li class="navelem"><b>Connection.h</b></li> + <li class="footer">Generated by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> + </ul> +</div> +</body> +</html> http://git-wip-us.apache.org/repos/asf/qpid-site/blob/c3ab60f6/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Duration_8h_source.html ---------------------------------------------------------------------- diff --git a/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Duration_8h_source.html b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Duration_8h_source.html new file mode 100755 index 0000000..0da5982 --- /dev/null +++ b/content/releases/qpid-cpp-1.39.0/messaging-api/cpp/api/Duration_8h_source.html @@ -0,0 +1,110 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml"> +<head> +<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> +<meta http-equiv="X-UA-Compatible" content="IE=9"/> +<meta name="generator" content="Doxygen 1.8.13"/> +<meta name="viewport" content="width=device-width, initial-scale=1"/> +<title>Qpid C++ Messaging API: qpid/messaging/Duration.h Source File</title> +<link href="tabs.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="jquery.js"></script> +<script type="text/javascript" src="dynsections.js"></script> +<link href="navtree.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="resize.js"></script> +<script type="text/javascript" src="navtreedata.js"></script> +<script type="text/javascript" src="navtree.js"></script> +<script type="text/javascript"> + $(document).ready(initResizable); +</script> +<link href="search/search.css" rel="stylesheet" type="text/css"/> +<script type="text/javascript" src="search/searchdata.js"></script> +<script type="text/javascript" src="search/search.js"></script> +<script type="text/javascript"> + $(document).ready(function() { init_search(); }); +</script> +<link href="doxygen.css" rel="stylesheet" type="text/css" /> +</head> +<body> +<div id="top"><!-- do not remove this div, it is closed by doxygen! --> +<div id="titlearea"> +<table cellspacing="0" cellpadding="0"> + <tbody> + <tr style="height: 56px;"> + <td id="projectalign" style="padding-left: 0.5em;"> + <div id="projectname">Qpid C++ Messaging API +  <span id="projectnumber">1.39.0</span> + </div> + </td> + <td> <div id="MSearchBox" class="MSearchBoxInactive"> + <span class="left"> + <img id="MSearchSelect" src="search/mag_sel.png" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + alt=""/> + <input type="text" id="MSearchField" value="Search" accesskey="S" + onfocus="searchBox.OnSearchFieldFocus(true)" + onblur="searchBox.OnSearchFieldFocus(false)" + onkeyup="searchBox.OnSearchFieldChange(event)"/> + </span><span class="right"> + <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> + </span> + </div> +</td> + </tr> + </tbody> +</table> +</div> +<!-- end header part --> +<!-- Generated by Doxygen 1.8.13 --> +<script type="text/javascript"> +var searchBox = new SearchBox("searchBox", "search",false,'Search'); +</script> +</div><!-- top --> +<div id="side-nav" class="ui-resizable side-nav-resizable"> + <div id="nav-tree"> + <div id="nav-tree-contents"> + <div id="nav-sync" class="sync"></div> + </div> + </div> + <div id="splitbar" style="-moz-user-select:none;" + class="ui-resizable-handle"> + </div> +</div> +<script type="text/javascript"> +$(document).ready(function(){initNavTree('Duration_8h_source.html','');}); +</script> +<div id="doc-content"> +<!-- window showing the filter options --> +<div id="MSearchSelectWindow" + onmouseover="return searchBox.OnSearchSelectShow()" + onmouseout="return searchBox.OnSearchSelectHide()" + onkeydown="return searchBox.OnSearchSelectKey(event)"> +</div> + +<!-- iframe showing the search results (closed by default) --> +<div id="MSearchResultsWindow"> +<iframe src="javascript:void(0)" frameborder="0" + name="MSearchResults" id="MSearchResults"> +</iframe> +</div> + +<div class="header"> + <div class="headertitle"> +<div class="title">Duration.h</div> </div> +</div><!--header--> +<div class="contents"> +<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <span class="preprocessor">#ifndef QPID_MESSAGING_DURATION_H</span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="preprocessor">#define QPID_MESSAGING_DURATION_H</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> </div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment">/*</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> *</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * Licensed to the Apache Software Foundation (ASF) under one</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> * or more contributor license agreements. See the NOTICE file</span></div><div clas s="line"><a name="l00008"></a><span class="lineno"> 8</span> <span class="comment"> * distributed with this work for additional information</span></div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="comment"> * regarding copyright ownership. The ASF licenses this file</span></div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"> * to you under the Apache License, Version 2.0 (the</span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment"> * "License"); you may not use this file except in compliance</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * with the License. You may obtain a copy of the License at</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> * </span></div><div class="line"><a nam e="l00014"></a><span class="lineno"> 14</span> <span class="comment"> * http://www.apache.org/licenses/LICENSE-2.0</span></div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="comment"> * </span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"> * Unless required by applicable law or agreed to in writing,</span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> * software distributed under the License is distributed on an</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> * KIND, either express or implied. See the License for the</span></div><div class="line"><a name="l00020"></a><spa n class="lineno"> 20</span> <span class="comment"> * specific language governing permissions and limitations</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> * under the License.</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> *</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> */</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> </div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="preprocessor">#include "qpid/messaging/ImportExport.h"</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> </div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="preprocessor">#include "qpid/sys/IntegerTypes.h"</span></div><div c lass="line"><a name="l00028"></a><span class="lineno"> 28</span> </div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="keyword">namespace </span><a class="code" href="namespaceqpid.html">qpid</a> {</div><div class="line"><a name="l00030"></a><span class="lineno"> 30</span> <span class="keyword">namespace </span>messaging {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span> </div><div class="line"><a name="l00035"></a><span class="lineno"><a class="line" href="classqpid_1_1messaging_1_1Duration.html"> 35</a></span> <span class="keyword">class </span>QPID_MESSAGING_CLASS_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> {</div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span>  <span class="keyword">public</span>:</div><div class="line"><a name="l00 038"></a><span class="lineno"> 38</span>  QPID_MESSAGING_EXTERN <span class="keyword">explicit</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>(uint64_t milliseconds);</div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span>  QPID_MESSAGING_EXTERN uint64_t getMilliseconds() <span class="keyword">const</span>;</div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span>  QPID_MESSAGING_EXTERN <span class="keyword">static</span> <span class="keyword">const</span> Duration FOREVER;</div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span>  QPID_MESSAGING_EXTERN <span class="keyword">static</span> <span class="keyword">const</span> Duration IMMEDIATE;</div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span>  QPID_MESSAGING_EXTERN <span class="keyword">static</span> <span class="keyword">const</span> Duration SECOND;</div><div class="l ine"><a name="l00043"></a><span class="lineno"> 43</span>  QPID_MESSAGING_EXTERN <span class="keyword">static</span> <span class="keyword">const</span> Duration MINUTE;</div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span>  <span class="keyword">private</span>:</div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span>  uint64_t milliseconds;</div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> };</div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> </div><div class="line"><a name="l00048"></a><span class="lineno"> 48</span> QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a> operator*(<span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& duration,</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  uint64_t multiplier);</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span> QPID_MESSAGING_EXTERN <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a> operator*(uint64_t multiplier,</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  <span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& duration);</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> QPID_MESSAGING_EXTERN <span class="keywordtype">bool</span> operator==(<span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& a, <span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& b);</div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span> QPID_MESSA GING_EXTERN <span class="keywordtype">bool</span> operator!=(<span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& a, <span class="keyword">const</span> <a class="code" href="classqpid_1_1messaging_1_1Duration.html">Duration</a>& b);</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span> </div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> }} <span class="comment">// namespace qpid::messaging</span></div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span> </div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span> <span class="preprocessor">#endif </span></div><div class="ttc" id="classqpid_1_1messaging_1_1Duration_html"><div class="ttname"><a href="classqpid_1_1messaging_1_1Duration.html">qpid::messaging::Duration</a></div><div class="ttdef"><b>Definition:</b> Duration.h:35</div></div> +<div class="ttc" id="namespaceqpid_html"><div class="ttname"><a href="namespaceqpid.html">qpid</a></div><div class="ttdef"><b>Definition:</b> Address.h:32</div></div> +</div><!-- fragment --></div><!-- contents --> +</div><!-- doc-content --> +<!-- start footer part --> +<div id="nav-path" class="navpath"><!-- id is needed for treeview function! --> + <ul> + <li class="navelem"><a class="el" href="dir_13a1f016b7e4029ce6d63f46085f9ca8.html">qpid</a></li><li class="navelem"><a class="el" href="dir_20ca349f353d950391945791158d5618.html">messaging</a></li><li class="navelem"><b>Duration.h</b></li> + <li class="footer">Generated by + <a href="http://www.doxygen.org/index.html"> + <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li> + </ul> +</div> +</body> +</html> --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org