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.Condition_Impl; 
  13. with RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  14.  
  15. package DDS.GuardCondition_Impl is 
  16.    use RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  17.    type Ref is limited new DDS.Condition_Impl.Ref with null record; 
  18.    type Ref_Access is access all Ref'Class; 
  19.  
  20.    procedure Initialize 
  21.      (Self : in out Ref); 
  22.  
  23.    procedure Adjust 
  24.      (Self : in out Ref); 
  25.  
  26.    procedure Finalize 
  27.      (Self : in out Ref); 
  28.  
  29.    procedure Set_Trigger_Value 
  30.      (Self : access Ref; 
  31.       Value : DDS.Boolean); 
  32.  
  33.    function Get_Trigger_Value 
  34.      (Self : access Ref) return DDS.Boolean; 
  35.  
  36.    procedure Free (This : in out Ref_Access); 
  37.    type DDS_GuardCondition_Access is access all DDS_GuardCondition with Storage_Size => 0; 
  38.  
  39.    function GetInterface (Self : not null access Ref) return DDS_GuardCondition_Access; 
  40.    procedure SetInterface (Self : not null access Ref; To : DDS_GuardCondition_Access); 
  41. private 
  42.  
  43.    procedure Free_Impl is new Ada.Unchecked_Deallocation (Ref'Class, Ref_Access); 
  44.    procedure Free (This : in out Ref_Access) renames Free_Impl; 
  45. end DDS.GuardCondition_Impl;