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. with DDS.Entity; 
  12. with DDS.StatusCondition; 
  13. with DDS.StatusCondition_Impl; 
  14. with RTIDDS.Obj_Impl; 
  15. with RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  16.  
  17. package DDS.Entity_Impl is 
  18.    use RTIDDS.Low_Level.ndds_dds_c_dds_c_infrastructure_h; 
  19.    type Ref is limited new RTIDDS.Obj_Impl.Ref and DDS.Entity.Ref with 
  20.       record 
  21.          StatusCondition : aliased DDS.StatusCondition_Impl.Ref; 
  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 GetInterface (Self : not null access Ref) return DDS_Entity_Access; 
  50.    procedure SetInterface (Self : not null access Ref; To : DDS_Entity_Access); 
  51. end DDS.Entity_Impl;