1. pragma Ada_2012; 
  2. --  (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$ 
  3. --  All rights reserved. 
  4. -- 
  5. --  No duplications, whole or partial, manual or electronic, may be made 
  6. --  without express written permission.  Any such copies, or 
  7. --  revisions thereof, must display this notice unaltered. 
  8. --  This code contains trade secrets of Real-Time Innovations, Inc. 
  9.  
  10.  
  11.  
  12. with DDS.QueryCondition; 
  13. with DDS.ReadCondition_Impl; 
  14. with RTIDDS.Low_Level.ndds_dds_c_dds_c_subscription_h; 
  15. with DDS.DataReader_Impl; 
  16.  
  17. package DDS.QueryCondition_Impl is 
  18.    use RTIDDS.Low_Level.ndds_dds_c_dds_c_subscription_h; 
  19.    use DDS.DataReader_Impl; 
  20.    type Ref is new DDS.ReadCondition_Impl.Ref and DDS.QueryCondition.Ref with null record; 
  21.    type Ref_Access is access all Ref'Class; 
  22.  
  23.    function Get_Query_Expression 
  24.      (Self : not null access Ref) 
  25.      return DDS.String; 
  26.  
  27.    procedure Get_Query_Parameters 
  28.      (Self   : not null access Ref; 
  29.       Params : not null access DDS.String_Seq.Sequence); 
  30.  
  31.    procedure Set_Query_Parameters 
  32.      (Self   : not null access Ref; 
  33.       Params : DDS.String_Seq.Sequence); 
  34.  
  35.    function Get_ReadConditionImpl_I 
  36.      (Self : access Ref) 
  37.       return DDS.ReadCondition_Impl.Ref_Access; 
  38.  
  39.    function CreateI 
  40.      (C_DataReader  : DDS_DataReader_Access; 
  41.       Sample_Mask   : DDS.SampleStateMask; 
  42.       View_Mask     : DDS.ViewStateMask; 
  43.       Instance_Mask : DDS.InstanceStateMask; 
  44.       Query         : DDS.String; 
  45.       Query_Params  : DDS.String_Seq.Sequence) 
  46.       return DDS.QueryCondition.Ref_Access; 
  47.  
  48.    procedure Free (Self : access Ref'Class); 
  49.    type DDS_QueryCondition_Access is access all DDS_QueryCondition with Storage_Size => 0; 
  50.    function GetInterface (Self : not null access Ref) return DDS_QueryCondition_Access; 
  51.    procedure SetInterface (Self : not null access Ref; To : DDS_QueryCondition_Access); 
  52. private 
  53.  
  54.    procedure Free_Impl is new Ada.Unchecked_Deallocation (Ref'Class, Ref_Access); 
  55.    procedure Free_Mem (Self : in out Ref_Access) renames Free_Impl; 
  56. end DDS.QueryCondition_Impl;