1. --  (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$ 
  2. --  All rights reserved. 
  3. -- 
  4. --  No duplications, whole or partial, manual or electronic, may be made 
  5. --  without express written permission.  Any such copies, or 
  6. --  revisions thereof, must display this notice unaltered. 
  7. --  This code contains trade secrets of Real-Time Innovations, Inc. 
  8.  
  9.  
  10.  
  11. with DDS.DataReaderListener; 
  12. with DDS.DataReader; 
  13. with DDS.Entity_Impl; 
  14. with DDS.TypeSupport_Impl; 
  15. with DDS.TopicDescription; use DDS.TopicDescription; 
  16. limited with DDS.DomainParticipant; 
  17. with RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h; use RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h; 
  18. with Ada.Unchecked_Deallocation; 
  19. package DDS.TopicDescription_Impl is 
  20.  
  21.    type Ref is limited new DDS.Entity_Impl.Ref and DDS.TopicDescription.Ref with private; 
  22.    type Ref_Access is access all Ref'Class; 
  23.  
  24.  
  25.    function Get_Type_Name 
  26.      (Self : not null access Ref) 
  27.       return DDS.String; 
  28.  
  29.    function Get_Name 
  30.      (Self : not null access Ref) 
  31.       return DDS.String; 
  32.  
  33.    function Get_Participant 
  34.      (Self : not null access Ref) 
  35.      return access DDS.DomainParticipant.Ref'Class; 
  36.  
  37.    function CreateI (Wrapper : not null access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_Topic) 
  38.                      return DDS.TopicDescription_Impl.Ref_Access; 
  39.  
  40.    function create_datareaderI 
  41.      (self               : not null access Ref; 
  42.       l                  : Integer; 
  43.       datareaderlistener : DDS.DataReaderListener.Ref_Access; 
  44.       i                  : Integer) return DDS.DataReader.Ref_Access; 
  45.  
  46.    function get_data_type (self : not null access Ref) return DDS.TypeSupport_Impl.Ref_Access; 
  47.  
  48.    function Get_Native_Topic_Wrapper (Self : not null access Ref) return access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_Topic; 
  49.  
  50.    procedure Set_Native_ContentFilteredTopic_Wrapper (Self : not null access Ref; CFTopic_W : access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_ContentFilteredTopic); 
  51.  
  52.    function Get_Native_ContentFilteredTopic_Wrapper (Self : not null access Ref) return access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_ContentFilteredTopic; 
  53.  
  54.    procedure Free (This : in out Ref_Access); 
  55.  
  56.    type DDS_TopicDescription_Access is access all DDS_TopicDescription with Storage_Size => 0; 
  57.  
  58.  
  59.    function GetInterface 
  60.      (Self : not null access Ref) 
  61.       return DDS_TopicDescription_Access; 
  62.    procedure SetInterface (Self : not null access Ref; To : DDS_TopicDescription_Access); 
  63.  
  64.    function GetInterface 
  65.      (Self : not null access constant Ref) 
  66.       return System.Address; 
  67.    procedure SetInterface (Self : not null access Ref; To : System.Address); 
  68.  
  69. private 
  70.    type Ref is limited new DDS.Entity_Impl.Ref and DDS.TopicDescription.Ref  with record 
  71.       Native_Topic_Wrapper : access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_Topic; 
  72.       Native_ContentFilteredTopic_Wrapper : access RTIDDS.Low_Level.ndds_dds_c_dds_c_topic_h.DDS_ContentFilteredTopic; 
  73.    end record; 
  74.  
  75.    procedure Free_Impl is new Ada.Unchecked_Deallocation (Ref'Class, Ref_Access); 
  76.    procedure Free (This : in out Ref_Access) renames Free_Impl; 
  77. end DDS.TopicDescription_Impl;