summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/dds4ccm/impl/ndds/Topic.h
blob: af0ff15fdeba2c4f0ebdc12f32d14af80a9c9661 (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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
 * @author William R. Otte <wotte@dre.vanderbilt.edu>
 * @author Johnny Willemsen <jwillemsen@remedy.nl>
 *
 * $Id$
 *
 * Wrapper facade for NDDS.
 */

#ifndef CIAO_NDDS_TOPIC_H
#define CIAO_NDDS_TOPIC_H
#include "NDDS_Traits.h"
#include "DomainParticipant.h"

#include "dds4ccm/impl/ndds/dds4ccm_ndds_impl_export.h"
#include "tao/LocalObject.h"

namespace CIAO
{
  namespace DDS4CCM
  {
    namespace RTI
    {
      class DDS4CCM_NDDS_IMPL_Export RTI_Topic_i :
        public virtual ::DDS::CCM_Topic,
        public virtual ::CORBA::LocalObject
      {
      public:
        // Constructor
        RTI_Topic_i (DDSTopic *);

        // Destructor
        virtual ~RTI_Topic_i (void);

        virtual
          ::DDS::ReturnCode_t set_qos (const ::DDS::TopicQos & qos);

        virtual
          ::DDS::ReturnCode_t get_qos (::DDS::TopicQos & qos);

        virtual
          ::DDS::ReturnCode_t set_listener (::DDS::TopicListener_ptr a_listener,
                                            ::DDS::StatusMask mask);

        virtual
          ::DDS::TopicListener_ptr get_listener (void);

        virtual
          ::DDS::ReturnCode_t get_inconsistent_topic_status (::DDS::InconsistentTopicStatus & a_status);

        virtual
          ::DDS::ReturnCode_t enable (void);

        virtual
          ::DDS::StatusCondition_ptr get_statuscondition (void);

        virtual
          ::DDS::StatusMask get_status_changes (void);

        virtual
          ::DDS::InstanceHandle_t get_instance_handle (void);

        virtual
          char * get_type_name (void);

        virtual
          char * get_name (void);

        virtual
          ::DDS::DomainParticipant_ptr get_participant (void);

        DDSTopic * get_topic (void);

      private:
        DDSTopic * impl_;
      };
    }
  }
}

#endif