source: sample/pingpong/PingPongMessage.h@ 2411

Last change on this file since 2411 was 2410, checked in by mies, 15 years ago

adapted ping pong example

File size: 774 bytes
Line 
1#ifndef PINGPONGMESSAGES_H_
2#define PINGPONGMESSAGES_H_
3
4// #include "ariba/utility/messages.h"
5// #include "ariba/utility/serialization.h"
6// #include "ariba/utility/misc/Helper.h"
7// using ariba::utility::Message;
8
9#include <string>
10#include "ariba/ariba.h"
11
12using namespace ariba;
13using std::string;
14
15namespace ariba {
16namespace application {
17namespace pingpong {
18
19using_serialization;
20
21class PingPongMessage : public Message {
22 VSERIALIZEABLE;
23public:
24 PingPongMessage();
25 PingPongMessage( uint8_t _id );
26 virtual ~PingPongMessage();
27
28 string info();
29 uint8_t getid();
30private:
31 uint8_t id;
32};
33
34}}} // namespace ariba, appplication , pingpong
35
36sznBeginDefault( ariba::application::pingpong::PingPongMessage, X ) {
37 X && id;
38} sznEnd();
39
40#endif /* PINGPONGMESSAGES_H_ */
Note: See TracBrowser for help on using the repository browser.