Changeset 12063 for sample/pingpong
- Timestamp:
- Jun 19, 2013, 1:09:25 PM (11 years ago)
- Location:
- sample/pingpong
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/pingpong/PingPong.cpp
r12062 r12063 1 1 #include "PingPong.h" 2 #include "ariba/utility/configuration/Configuration.h"3 #include "ariba/utility/visual/DddVis.h"4 5 2 #include <boost/property_tree/ptree.hpp> 6 3 #include <boost/property_tree/json_parser.hpp> 7 4 8 9 using ariba::utility::Configuration;10 5 using namespace ariba; 11 6 -
sample/pingpong/PingPong.h
r12060 r12063 60 60 61 61 private: 62 // the ariba module and a node63 // AribaModule* ariba;64 62 Node node; 65 63 string name; … … 76 74 }; 77 75 78 // needed for simulation support79 ARIBA_SIMULATION_SERVICE(PingPong);80 81 76 }}} // namespace ariba, application, pingpong 82 77 -
sample/pingpong/PingPongMessage.cpp
r5151 r12063 1 1 #include "PingPongMessage.h" 2 #include <sstream> 2 3 3 4 namespace ariba { … … 16 17 } 17 18 18 string PingPongMessage::info(){ 19 return "ping pong message id " + ariba::utility::Helper::ultos(id); 19 string PingPongMessage::info() 20 { 21 ostringstream out; 22 out << "ping pong message id " << (int) id; 23 return out.str(); 20 24 } 21 25
Note:
See TracChangeset
for help on using the changeset viewer.