#include "IFR_Service.h"
#include "tao/Environment.h"
Include dependency graph for IFR_Server.cpp:
Go to the source code of this file.
Functions | |
int | main (int argc, char *argv[]) |
|
Definition at line 12 of file IFR_Server.cpp. References IFR_Service::fini(), IFR_Service::init(), and IFR_Service::run().
00013 { 00014 IFR_Service server; 00015 00016 try 00017 { 00018 int status = server.init (argc, argv); 00019 00020 if (status != 0) 00021 { 00022 return 1; 00023 } 00024 else 00025 { 00026 server.run (); 00027 00028 status = server.fini (); 00029 00030 if (status == -1) 00031 { 00032 return 1; 00033 } 00034 } 00035 } 00036 catch (const CORBA::SystemException& sysex) 00037 { 00038 sysex._tao_print_exception ("System Exception"); 00039 return -1; 00040 } 00041 catch (const CORBA::Exception& ex) 00042 { 00043 ex._tao_print_exception ("Unknown Exception"); 00044 return -1; 00045 } 00046 return 0; 00047 } |