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. limited with DDS.DataReader; 
  12. with DDS.Condition_Impl; 
  13. with DDS.ReadCondition; 
  14. with RTIDDS.Low_Level.ndds_reda_reda_worker_impl_h; 
  15.  
  16. package DDS.ReadCondition_Impl is 
  17.  
  18.    type Ref is new DDS.Condition_Impl.Ref and DDS.ReadCondition.Ref with null record; 
  19.    type Ref_Access is access all Ref'Class; 
  20.  
  21.    function Get_Trigger_Value 
  22.      (Self : access Ref) 
  23.      return DDS.Boolean; 
  24.  
  25.    function Get_Sample_State_Mask 
  26.      (Self : not null access Ref) 
  27.      return DDS.SampleStateMask; 
  28.  
  29.    function Get_View_State_Mask 
  30.      (Self : not null access Ref) 
  31.      return DDS.ViewStateMask; 
  32.  
  33.    function Get_Instance_State_Mask 
  34.      (Self : not null access Ref) 
  35.      return DDS.InstanceStateMask; 
  36.  
  37.    function Get_DataReader 
  38.      (Self : not null access Ref) 
  39.       return access DDS.DataReader.Ref'Class; 
  40.  
  41.    function CreateI 
  42.      (C_DataReader  : System.Address; 
  43.       Sample_Mask   : DDS.SampleStateMask; 
  44.       View_Mask     : DDS.ViewStateMask; 
  45.       Instance_Mask : DDS.InstanceStateMask) 
  46.      return DDS.ReadCondition.Ref_Access; 
  47.  
  48.    procedure Free (Self : access Ref'Class); 
  49.  
  50.    function Get_Impl_I 
  51.      (Self : access Ref) 
  52.      return DDS.Condition_Impl.Ref_Access; 
  53.  
  54.    procedure Finalize_Callback 
  55.      (arg1 : System.Address; 
  56.       arg2 : System.Address; 
  57.       arg3 : access RTIDDS.Low_Level.ndds_reda_reda_worker_impl_h.REDAWorker); 
  58.    pragma Convention (C, Finalize_Callback); 
  59.  
  60. private 
  61.  
  62.    procedure Free_Impl is new Ada.Unchecked_Deallocation (Ref'Class, Ref_Access); 
  63.    procedure Free_Mem (Self : in out Ref_Access) renames Free_Impl; 
  64.  
  65. end DDS.ReadCondition_Impl;