blob: dba75d7f6f08a4f1adf6906f3c1a98cec5a4acf1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
// $Id$
#include "Trading_Service.h"
// Driver function for the TAO Trading Service.
int
main (int argc, char *argv[])
{
Trading_Service trader;
ACE_TRY_NEW_ENV
{
int check =
trader.init (argc, argv ACE_ENV_ARG_PARAMETER);
ACE_TRY_CHECK;
if (check != -1)
{
trader.run (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
else
ACE_ERROR_RETURN ((LM_ERROR,
"Failed to initialize the trader.\n"),
1);
}
ACE_CATCHANY
{
ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, "Trading Service");
return 1;
}
ACE_ENDTRY;
return 0;
}
|