OpenDDS  Snapshot(2023/04/28-20:55)
Functions
DCPSInfoRepo.cpp File Reference
#include "DCPSInfoRepoServ.h"
#include <iostream>
Include dependency graph for DCPSInfoRepo.cpp:

Go to the source code of this file.

Functions

int ACE_TMAIN (int argc, ACE_TCHAR *argv[])
 

Function Documentation

◆ ACE_TMAIN()

int ACE_TMAIN ( int  argc,
ACE_TCHAR argv[] 
)

Definition at line 15 of file DCPSInfoRepo.cpp.

References CORBA::Exception::_tao_print_exception(), InfoRepo::InitError::msg_, and InfoRepo::run().

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 }
void _tao_print_exception(const char *info, FILE *f=stdout) const
Definition: Exception.cpp:82