Line | |
---|
1 | #include "PingPongMessage.h"
|
---|
2 | #include <sstream>
|
---|
3 |
|
---|
4 | namespace ariba {
|
---|
5 | namespace application {
|
---|
6 | namespace pingpong {
|
---|
7 |
|
---|
8 | vsznDefault(PingPongMessage);
|
---|
9 |
|
---|
10 | PingPongMessage::PingPongMessage() : id(0) {
|
---|
11 | }
|
---|
12 |
|
---|
13 | PingPongMessage::PingPongMessage(uint8_t _id, string name) : id(_id),name(name) {
|
---|
14 | }
|
---|
15 |
|
---|
16 | PingPongMessage::~PingPongMessage(){
|
---|
17 | }
|
---|
18 |
|
---|
19 | string PingPongMessage::info()
|
---|
20 | {
|
---|
21 | ostringstream out;
|
---|
22 | out << "ping pong message id " << (int) id;
|
---|
23 | return out.str();
|
---|
24 | }
|
---|
25 |
|
---|
26 | uint8_t PingPongMessage::getid(){
|
---|
27 | return id;
|
---|
28 | }
|
---|
29 |
|
---|
30 | }}} // namespace ariba, appplication, pingpong
|
---|
Note:
See
TracBrowser
for help on using the repository browser.