037_msc.cpp
Go to the documentation of this file.
1 // objective: test the \msc and \endmsc commands
2 // check: class_sender.xml
3 // check: class_receiver.xml
4 
5 /** Sender class. Can be used to send a command to the server.
6  * The receiver will acknowledge the command by calling Ack().
7  * \msc
8  * Sender,Receiver;
9  * Sender->Receiver [label="Command()", URL="\ref Receiver::Command()"];
10  * Sender<-Receiver [label="Ack()", URL="\ref Ack()", ID="1"];
11  * \endmsc
12  */
13 class Sender
14 {
15  public:
16  /** Acknowledgement from server */
17  void Ack(bool ok);
18 };
19 
20 /** Receiver class. Can be used to receive and execute commands.
21  * After execution of a command, the receiver will send an acknowledgement
22  * \msc
23  * Receiver,Sender;
24  * Receiver<-Sender [label="Command()", URL="\ref Command()"];
25  * Receiver->Sender [label="Ack()", URL="\ref Sender::Ack()", ID="1"];
26  * \endmsc
27  */
28 class Receiver
29 {
30  public:
31  /** Executable a command on the server */
32  void Command(int commandId);
33 };
#define Command
Definition: pre.cpp:4271
void Ack(bool ok)