blob: c76c5cb99c541ce69838eca65a80b64354a42a17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
#include "dds4ccm/impl/ndds/TopicDescription.h"
#include "dds4ccm/impl/logger/Log_Macros.h"
#include "ndds/ndds_cpp.h"
namespace CIAO
{
namespace NDDS
{
DDS_TopicDescription_i::DDS_TopicDescription_i (
::DDSTopicDescription * rc,
::DDS::DomainParticipant_ptr dp) :
rti_entity_ (rc),
dp_ (::DDS::DomainParticipant::_duplicate (dp))
{
}
DDS_TopicDescription_i::~DDS_TopicDescription_i (void)
{
}
char *
DDS_TopicDescription_i::get_type_name (void)
{
return CORBA::string_dup (this->rti_entity ()->get_type_name ());
}
char *
DDS_TopicDescription_i::get_name (void)
{
return CORBA::string_dup (this->rti_entity ()->get_name ());
}
::DDS::DomainParticipant_ptr
DDS_TopicDescription_i::get_participant (void)
{
return ::DDS::DomainParticipant::_duplicate (this->dp_.in ());
}
::DDSTopicDescription *
DDS_TopicDescription_i::get_rti_entity (void)
{
return this->rti_entity_;
}
::DDSTopicDescription *
DDS_TopicDescription_i::rti_entity (void)
{
if (!this->rti_entity_)
{
DDS4CCM_DEBUG (DDS4CCM_LOG_LEVEL_ACTION, (LM_DEBUG,
"DDS_TopicDescription_i::rti_entity - "
"Throwing BAD_INV_ORDER.\n"));
throw ::CORBA::BAD_INV_ORDER ();
}
return this->rti_entity_;
}
}
}
|