MCPcopy Create free account
hub / github.com/OpenDDS/OpenDDS / ACE_TMAIN

Function ACE_TMAIN

dds/InfoRepo/DCPSInfoRepo.cpp:14–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#include <iostream>
13
14int
15ACE_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}

Callers

nothing calls this directly

Calls 2

_tao_print_exceptionMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected