source: sample/pingpong/main.cpp@ 12458

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

PingPong: some clean up

File size: 573 bytes
Line 
1#include <string>
2#include "ariba/utility/system/StartupWrapper.h"
3#include "PingPong.h"
4
5using std::string;
6using ariba::utility::StartupWrapper;
7using ariba::application::pingpong::PingPong;
8
9int main( int argc, char** argv ) {
10
11 // get config file
12 string config;
13 if (argc >= 2) config = argv[1];
14
15 StartupWrapper::startSystem();
16
17 // this will do the main functionality and block
18 PingPong ping(config);
19 StartupWrapper::startup(&ping);
20
21 // --> we will run blocking until <enter> is hit
22
23 StartupWrapper::shutdown(&ping);
24 StartupWrapper::stopSystem();
25
26 return 0;
27}
Note: See TracBrowser for help on using the repository browser.