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. --  Detailed Description 
  13. --  Root class for all the conditions that may be attached to a DDS.WaitSet. 
  14. --  This basic class is specialised in three classes: 
  15. --  DDS.GuardCondition, DDS.StatusCondition, and DDS.ReadCondition. 
  16. --  A DDSCondition has a trigger_value that can be 
  17. --   1 or 0 and is set automatically by the 
  18. --  Data Distribution Service. 
  19. -- 
  20. --  See also:DDS.SWaitSet 
  21.  
  22. --  <defgroup>ConditionsModuleDocs</defgroup> 
  23. --  <dref>Condition</dref> 
  24. package DDS.Condition is 
  25.  
  26.    type Ref is limited interface; 
  27.    type Ref_Access is access all Ref'Class; 
  28.    type Ref_Access_Access is access all Ref_Access; 
  29.    type Ref_Access_Array is array (Natural range <>) of aliased Ref_Access; 
  30.  
  31.    function Get_Trigger_Value 
  32.      (Self : access Ref) 
  33.       return DDS.Boolean is abstract; 
  34.    --  <dref>Condition_get_trigger_value</dref> 
  35.  
  36.    procedure Initialize 
  37.      (Self : in out Ref_Access) is null; 
  38.  
  39.    procedure Finalize 
  40.      (Self : in out Ref_Access) is null; 
  41.  
  42.    procedure Copy 
  43.      (Dst : in out Ref_Access; 
  44.       Src : in Ref_Access); 
  45.  
  46. end DDS.Condition;