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/docs/api/user.doxygen.in | 4 +- qpid/cpp/rubygen/framing.0-10/Session.rb | 2 + 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 ++++++++++++++++++++++ 6 files changed, 210 insertions(+), 2 deletions(-) (limited to 'qpid/cpp') diff --git a/qpid/cpp/docs/api/user.doxygen.in b/qpid/cpp/docs/api/user.doxygen.in index ee0860f8b4..788bef8fe5 100644 --- a/qpid/cpp/docs/api/user.doxygen.in +++ b/qpid/cpp/docs/api/user.doxygen.in @@ -25,13 +25,13 @@ # The PROJECT_NAME tag is a single word (or a sequence of words surrounded # by quotes) that should identify the project. -PROJECT_NAME = Qpid +PROJECT_NAME = "Qpid C++ Client API" # The PROJECT_NUMBER tag can be used to enter a project or revision number. # This could be handy for archiving the generated documentation or # if some version control system is used. -PROJECT_NUMBER = 0 +# PROJECT_NUMBER = 0 # The OUTPUT_DIRECTORY tag is used to specify the (relative or absolute) # base path where the generated documentation will be put. diff --git a/qpid/cpp/rubygen/framing.0-10/Session.rb b/qpid/cpp/rubygen/framing.0-10/Session.rb index 299c45679f..16aae8c802 100644 --- a/qpid/cpp/rubygen/framing.0-10/Session.rb +++ b/qpid/cpp/rubygen/framing.0-10/Session.rb @@ -30,6 +30,8 @@ class CppGen } end + + # Generates a doxygen comment for AmqpMethod m. def doxygen(m) doxygen_comment { genl m.doc 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