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