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. pragma Ada_05; 
  10.  
  11. with DDS.DataReaderListener; 
  12. with DDS.DataReader; 
  13. with DDS.TypeSupport_Impl; 
  14. with DDS.TopicDescription; use DDS.TopicDescription; 
  15. limited with DDS.DomainParticipant; 
  16. with RTIDDS.Low_Level.dds_c.topic_h; 
  17. with Ada.Unchecked_Deallocation; 
  18.  
  19. package DDS.TopicDescription_Impl is 
  20.  
  21.    type Ref is limited new DDS.TopicDescription.Ref with private; 
  22.    type Ref_Access is access all Ref'Class; 
  23.  
  24.    function GetInterface 
  25.      (Self : not null access Ref) 
  26.       return System.Address; 
  27.  
  28.    function Get_Type_Name 
  29.      (Self : not null access Ref) 
  30.       return DDS.String; 
  31.  
  32.    function Get_Name 
  33.      (Self : not null access Ref) 
  34.       return DDS.String; 
  35.  
  36.    function Get_Participant 
  37.      (Self : not null access Ref) 
  38.      return access DDS.DomainParticipant.Ref'Class; 
  39.  
  40.    function CreateI (Wrapper : access RTIDDS.Low_Level.dds_c.topic_h.DDS_Topic) 
  41.                      return DDS.TopicDescription_Impl.Ref_Access; 
  42.  
  43.    function create_datareaderI 
  44.      (self               : not null access Ref; 
  45.       l                  : Integer; 
  46.       datareaderlistener : DDS.DataReaderListener.Ref_Access; 
  47.       i                  : Integer) return DDS.DataReader.Ref_Access; 
  48.  
  49.    function get_data_type (self : not null access Ref) return access DDS.TypeSupport_Impl.Ref; 
  50.  
  51.    function Get_Native_Topic_Wrapper (Self : not null access Ref) return access RTIDDS.Low_Level.dds_c.topic_h.DDS_Topic; 
  52.  
  53.    procedure Set_Native_ContentFilteredTopic_Wrapper (Self : not null access Ref; CFTopic_W : access RTIDDS.Low_Level.dds_c.topic_h.DDS_ContentFilteredTopic); 
  54.  
  55.    function Get_Native_ContentFilteredTopic_Wrapper (Self : not null access Ref) return access RTIDDS.Low_Level.dds_c.topic_h.DDS_ContentFilteredTopic; 
  56.  
  57.    procedure Free (This : in out Ref_Access); 
  58.  
  59. private 
  60.    type Ref is limited new DDS.TopicDescription.Ref with record 
  61.       Native_Topic_Wrapper : access RTIDDS.Low_Level.dds_c.topic_h.DDS_Topic; 
  62.       Native_ContentFilteredTopic_Wrapper : access RTIDDS.Low_Level.dds_c.topic_h.DDS_ContentFilteredTopic; 
  63.    end record; 
  64.  
  65.    procedure Free_Impl is new Ada.Unchecked_Deallocation (Ref'Class, Ref_Access); 
  66.    procedure Free (This : in out Ref_Access) renames Free_Impl; 
  67. end DDS.TopicDescription_Impl;