From cf4e13e54f6e5a80ad70d032f1c063b062d6a5cc Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Wed, 5 Nov 2008 21:20:34 +0000 Subject: QPID-1294 (Johnathan Robie) Improved doxygen generation. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@711702 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/src/qpid/client/LocalQueue.h | 30 +++++++++++ qpid/cpp/src/qpid/client/Message.h | 70 ++++++++++++++++++++++++++ qpid/cpp/src/qpid/client/MessageListener.h | 47 +++++++++++++++++ qpid/cpp/src/qpid/client/SubscriptionManager.h | 59 ++++++++++++++++++++++ 4 files changed, 206 insertions(+) (limited to 'qpid/cpp/src') diff --git a/qpid/cpp/src/qpid/client/LocalQueue.h b/qpid/cpp/src/qpid/client/LocalQueue.h index 2b878b2939..30ea00612d 100644 --- a/qpid/cpp/src/qpid/client/LocalQueue.h +++ b/qpid/cpp/src/qpid/client/LocalQueue.h @@ -37,7 +37,37 @@ namespace client { * local queue until you retrieve them. * * \ingroup clientapi + * + * \details Using a Local Queue + * + *
+ * LocalQueue local_queue;
+ * subscriptions.subscribe(local_queue, string("message_queue"));
+ * for (int i=0; i<10; i++) {
+ *   Message message = local_queue.get();
+ *   std::cout << message.getData() << std::endl;
+ * }
+ * 
+ * + *

Getting Messages

+ * + * + * + *

Checking size

+ * */ + class LocalQueue { public: /** Create a local queue. Subscribe the local queue to a remote broker diff --git a/qpid/cpp/src/qpid/client/Message.h b/qpid/cpp/src/qpid/client/Message.h index 18efdd20f7..3f932efd8b 100644 --- a/qpid/cpp/src/qpid/client/Message.h +++ b/qpid/cpp/src/qpid/client/Message.h @@ -33,7 +33,77 @@ namespace client { * A message sent to or received from the broker. * * \ingroup clientapi + * \details + * + *

Getting and setting message contents

+ * + * + * + *

Getting and Setting Delivery Properties

+ * + * + * + *

Getting and Setting Message Properties

+ * + * + * + *

Getting and Setting Application Headers

+ * + * + * + * */ + class Message : public framing::TransferContent { public: diff --git a/qpid/cpp/src/qpid/client/MessageListener.h b/qpid/cpp/src/qpid/client/MessageListener.h index 76e1d17445..75aad6521b 100644 --- a/qpid/cpp/src/qpid/client/MessageListener.h +++ b/qpid/cpp/src/qpid/client/MessageListener.h @@ -35,7 +35,54 @@ namespace client { * Another way to receive messages is by using a LocalQueue. * * \ingroup clientapi + * \details + * + *

Using a MessageListener

+ * + * + * */ + class MessageListener{ public: virtual ~MessageListener(); diff --git a/qpid/cpp/src/qpid/client/SubscriptionManager.h b/qpid/cpp/src/qpid/client/SubscriptionManager.h index 393349a6af..58d880fa83 100644 --- a/qpid/cpp/src/qpid/client/SubscriptionManager.h +++ b/qpid/cpp/src/qpid/client/SubscriptionManager.h @@ -43,6 +43,65 @@ namespace client { * delivered. * * \ingroup clientapi + * + * \details + * + *

Subscribing and canceling subscriptions

+ * + * + * + *

Waiting for messages (and returning)

+ * + * + * + * + *

Setting Accept Mode, Acquire Mode, Ack Policy

+ * + *

setAcceptMode()

+ *
subscriptions.setAcceptMode(true);
+ *

setAcquireMode()

+ *
subscriptions.setAcquireMode(false);
+ * + * + * */ class SubscriptionManager : public sys::Runnable { -- cgit v1.2.1