summaryrefslogtreecommitdiffstats
path: root/testing/037_msc.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2013-07-19 19:46:35 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2013-07-19 19:46:35 (GMT)
commit5875da6cae352bbcbe64f537ccfcfab08ad98b3f (patch)
tree1f707443b228c25e2d0389133b8e697e88a11426 /testing/037_msc.cpp
parentea7a639c40a88c0de4baad4c0ffd5ae4b4065969 (diff)
downloadDoxygen-5875da6cae352bbcbe64f537ccfcfab08ad98b3f.zip
Doxygen-5875da6cae352bbcbe64f537ccfcfab08ad98b3f.tar.gz
Doxygen-5875da6cae352bbcbe64f537ccfcfab08ad98b3f.tar.bz2
Added regression test suite
Diffstat (limited to 'testing/037_msc.cpp')
-rw-r--r--testing/037_msc.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/testing/037_msc.cpp b/testing/037_msc.cpp
new file mode 100644
index 0000000..84ffc55
--- /dev/null
+++ b/testing/037_msc.cpp
@@ -0,0 +1,33 @@
+// objective: test the \msc and \endmsc commands
+// check: class_sender.xml
+// check: class_receiver.xml
+
+/** Sender class. Can be used to send a command to the server.
+ * The receiver will acknowledge the command by calling Ack().
+ * \msc
+ * Sender,Receiver;
+ * Sender->Receiver [label="Command()", URL="\ref Receiver::Command()"];
+ * Sender<-Receiver [label="Ack()", URL="\ref Ack()", ID="1"];
+ * \endmsc
+ */
+class Sender
+{
+ public:
+ /** Acknowledgement from server */
+ void Ack(bool ok);
+};
+
+/** Receiver class. Can be used to receive and execute commands.
+ * After execution of a command, the receiver will send an acknowledgement
+ * \msc
+ * Receiver,Sender;
+ * Receiver<-Sender [label="Command()", URL="\ref Command()"];
+ * Receiver->Sender [label="Ack()", URL="\ref Sender::Ack()", ID="1"];
+ * \endmsc
+ */
+class Receiver
+{
+ public:
+ /** Executable a command on the server */
+ void Command(int commandId);
+};