OpenDDS  Snapshot(2023/04/28-20:55)
DCPSInfoRepo.cpp
Go to the documentation of this file.
1 /*
2  * Distributed under the OpenDDS License.
3  * See: http://www.opendds.org/license.html
4  */
5 
6 #include "DCPSInfoRepoServ.h"
7 
8 #ifdef ACE_AS_STATIC_LIBS
10 #endif
11 
12 #include <iostream>
13 
14 int
15 ACE_TMAIN(int argc, ACE_TCHAR *argv[])
16 {
17  try {
18 
19  InfoRepo infoRepo(argc, argv);
20 
21  InfoRepo_Shutdown ir_shutdown(infoRepo);
22  Service_Shutdown service_shutdown(ir_shutdown);
23 
24  infoRepo.run();
25 
26  } catch (InfoRepo::InitError& ex) {
27  std::cerr << "Unexpected initialization Error: "
28  << ex.msg_ << std::endl;
29  return 1;
30 
31  } catch (const CORBA::Exception& ex) {
32  ex._tao_print_exception("ERROR: DDS DCPS Info Repo caught exception");
33  return 1;
34  }
35  return 0;
36 }
char ACE_TCHAR
int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
void _tao_print_exception(const char *info, FILE *f=stdout) const
Definition: Exception.cpp:82