Last change
on this file since 10575 was 5151, checked in by Christoph Mayer, 15 years ago |
begin merge back from relay branch
|
File size:
723 bytes
|
Line | |
---|
1 | #ifndef PINGPONGMESSAGES_H_
|
---|
2 | #define PINGPONGMESSAGES_H_
|
---|
3 |
|
---|
4 | #include <string>
|
---|
5 | #include "ariba/ariba.h"
|
---|
6 |
|
---|
7 | using namespace ariba;
|
---|
8 | using std::string;
|
---|
9 |
|
---|
10 | namespace ariba {
|
---|
11 | namespace application {
|
---|
12 | namespace pingpong {
|
---|
13 |
|
---|
14 | using_serialization;
|
---|
15 |
|
---|
16 | class PingPongMessage : public Message {
|
---|
17 | VSERIALIZEABLE;
|
---|
18 | public:
|
---|
19 | PingPongMessage();
|
---|
20 | PingPongMessage( uint8_t _id, string name = string("<ping>") );
|
---|
21 | virtual ~PingPongMessage();
|
---|
22 |
|
---|
23 | string info();
|
---|
24 | uint8_t getid();
|
---|
25 |
|
---|
26 | inline string getName() const {
|
---|
27 | return name;
|
---|
28 | }
|
---|
29 | private:
|
---|
30 | uint8_t id;
|
---|
31 | string name;
|
---|
32 | };
|
---|
33 |
|
---|
34 | }}} // namespace ariba, appplication , pingpong
|
---|
35 |
|
---|
36 | sznBeginDefault( ariba::application::pingpong::PingPongMessage, X ) {
|
---|
37 | X && id && T(name);
|
---|
38 | } sznEnd();
|
---|
39 |
|
---|
40 | #endif /* PINGPONGMESSAGES_H_ */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.