OpenDDS
Snapshot(2023/04/28-20:55)
dds
InfoRepo
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
9
# include <
dds/DCPS/InfoRepoDiscovery/InfoRepoDiscovery.h
>
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
}
InfoRepo_Shutdown
Definition:
DCPSInfoRepoServ.h:86
InfoRepoDiscovery.h
ACE_TCHAR
char ACE_TCHAR
InfoRepo::run
void run()
Definition:
DCPSInfoRepoServ.cpp:76
InfoRepo::InitError
Definition:
DCPSInfoRepoServ.h:28
DCPSInfoRepoServ.h
InfoRepo::InitError::msg_
std::string msg_
Definition:
DCPSInfoRepoServ.h:30
ACE_TMAIN
int ACE_TMAIN(int argc, ACE_TCHAR *argv[])
Definition:
DCPSInfoRepo.cpp:15
InfoRepo
Definition:
DCPSInfoRepoServ.h:25
CORBA::Exception::_tao_print_exception
void _tao_print_exception(const char *info, FILE *f=stdout) const
Definition:
Exception.cpp:82
CORBA::Exception
Generated by
1.8.13