00001
00002
00003
00004
00005
00006
00007
00008 #include "DCPSInfoRepoServ.h"
00009
00010 #ifdef ACE_AS_STATIC_LIBS
00011 #include "dds/DCPS/InfoRepoDiscovery/InfoRepoDiscovery.h"
00012 #endif
00013
00014 #include "tao/ORB_Core.h"
00015
00016 #include <iostream>
00017
00018 int
00019 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
00020 {
00021 try {
00022
00023 InfoRepo infoRepo(argc, argv);
00024
00025 InfoRepo_Shutdown ir_shutdown(infoRepo);
00026 Service_Shutdown service_shutdown(ir_shutdown);
00027
00028 infoRepo.run();
00029
00030 } catch (InfoRepo::InitError& ex) {
00031 std::cerr << "Unexpected initialization Error: "
00032 << ex.msg_ << std::endl;
00033 return -1;
00034
00035 } catch (const CORBA::Exception& ex) {
00036 ex._tao_print_exception("ERROR: DDS DCPS Info Repo caught exception");
00037 return -1;
00038 }
00039 return 0;
00040 }