source: sample/pingpong/PingPongMessage.cpp@ 12764

Last change on this file since 12764 was 12063, checked in by hock@…, 11 years ago

..

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