#include "DCPSInfoRepoServ.h"
#include <iostream>
Go to the source code of this file.
Functions | |
int | ACE_TMAIN (int argc, ACE_TCHAR *argv[]) |
int ACE_TMAIN | ( | int | argc, | |
ACE_TCHAR * | argv[] | |||
) |
Definition at line 17 of file DCPSInfoRepo.cpp.
References CORBA::Exception::_tao_print_exception(), InfoRepo::InitError::msg_, and InfoRepo::run().
00018 { 00019 try { 00020 00021 InfoRepo infoRepo(argc, argv); 00022 00023 InfoRepo_Shutdown ir_shutdown(infoRepo); 00024 Service_Shutdown service_shutdown(ir_shutdown); 00025 00026 infoRepo.run(); 00027 00028 } catch (InfoRepo::InitError& ex) { 00029 std::cerr << "Unexpected initialization Error: " 00030 << ex.msg_ << std::endl; 00031 return -1; 00032 00033 } catch (const CORBA::Exception& ex) { 00034 ex._tao_print_exception("ERROR: DDS DCPS Info Repo caught exception"); 00035 return -1; 00036 } 00037 return 0; 00038 }