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. with DDS.Entity; 
  11. with DDS.StatusCondition; 
  12. with DDS.StatusCondition_Impl; 
  13. with RTIDDS.Obj_Impl; 
  14. with RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  15. with DDS.DomainParticipantFactory; 
  16. package DDS.Entity_Impl is 
  17.    use RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  18.    type Ref is limited new RTIDDS.Obj_Impl.Ref and DDS.Entity.Ref with 
  19.       record 
  20.          StatusCondition : aliased DDS.StatusCondition_Impl.Ref; 
  21.          Factory         : DDS.DomainParticipantFactory.Ref_Access; 
  22.       end record; 
  23.    type Ref_Access is access all Ref'Class; 
  24.    type Ref_Access_constant is access constant Ref; 
  25.  
  26.    procedure Enable (Self : not null access Ref); 
  27.  
  28.    function Get_StatusCondition (Self : not null access Ref) return 
  29.       DDS.StatusCondition.Ref_Access; 
  30.  
  31.    function Get_Status_Changes (Self : not null access Ref) return 
  32.      DDS.StatusMask; 
  33.  
  34.    function Get_Instance_Handle (Self : not null access Ref) return 
  35.      DDS.InstanceHandle_T; 
  36.  
  37.    function Get_Entity_Kind (Self : not null access Ref) return 
  38.      DDS.EntityKind_T; 
  39.  
  40.    function Get_User_Data (Self : not null access Ref) return 
  41.      System.Address; 
  42.  
  43.    procedure Set_User_Data (Self : not null access Ref; To : System.Address); 
  44.  
  45.    type DDS_Entity_Access is access all DDS_Entity with Storage_Size => 0; 
  46.    procedure Entity_Initialize_I (Self : access Ref; 
  47.                                   CEntity : DDS_Entity_Access); 
  48.  
  49.    function Wait (Self    : not null access Ref; 
  50.                   Mask    : in DDS.StatusMask; 
  51.                   Timeout : in Duration_T := DURATION_INFINITE) return Boolean; 
  52.    function Wait (Self    : not null access Ref; 
  53.                   Mask    : in DDS.StatusMask; 
  54.                   Timeout : in Duration := Duration'Last) return Boolean; 
  55.    --  Allows an application thread to wait for a status change . 
  56.    --  Returns True if the condition triggerd and False if it was the timeout. 
  57.  
  58.    procedure Wait (Self    : not null access Ref; 
  59.                    Mask    : in DDS.StatusMask; 
  60.                    Timeout : in Duration_T := DURATION_INFINITE); 
  61.    procedure Wait (Self    : not null access Ref; 
  62.                    Mask    : in DDS.StatusMask; 
  63.                    Timeout : in Duration := Duration'Last); 
  64.    --  Allows an application thread to wait for a status change. 
  65.    --  Raises DDS.TIMEOUT on timeout. 
  66.    function GetInterface (Self : not null access Ref) return DDS_Entity_Access; 
  67.    procedure SetInterface (Self : not null access Ref; To : DDS_Entity_Access); 
  68.    function Get_Factory (Self : not null access Ref) return not null access DDS.DomainParticipantFactory.Ref is (Self.Factory); 
  69. end DDS.Entity_Impl;