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. with DDS; 
  11. with DDS.DomainParticipant; 
  12. with DDS.TypeSupport; 
  13. with DDS.MetpTypeSupport_None; 
  14. with DDS.DataReader; 
  15. with DDS.DataWriter; 
  16. with DDS.Treats_Generic; 
  17.  
  18. --  <defgroup>KeyedStringBuiltInTypeGroupDocs</defgroup> 
  19. --  <dref>KeyedStringTypeSupport</dref> 
  20. package DDS.Builtin_KeyedString_TypeSupport is 
  21.  
  22.    type Ref is new Standard.DDS.TypeSupport.Ref with null record; 
  23.    type Ref_Access is access all Ref'Class; 
  24.  
  25.    function Create_TypedDataReaderI 
  26.      (Self : access Ref) return Standard.DDS.DataReader.Ref_Access; 
  27.  
  28.    procedure Destroy_TypedDataReaderI 
  29.      (Self   : access Ref; 
  30.       Reader : in out Standard.DDS.DataReader.Ref_Access); 
  31.  
  32.    function Create_TypedDataWriterI 
  33.      (Self : access Ref) return Standard.DDS.DataWriter.Ref_Access; 
  34.  
  35.    procedure Destroy_TypedDataWriterI 
  36.      (Self   : access Ref; 
  37.       Writer : in out Standard.DDS.DataWriter.Ref_Access) is null; 
  38.  
  39.    --  <internal> 
  40.    --  static methods 
  41.    --  </internal> 
  42.  
  43.    procedure Register_Type 
  44.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  45.       Type_Name   : in Standard.DDS.String); 
  46.    --  <dref>KeyedStringTypeSupport_register_type</dref> 
  47.  
  48.    procedure Unregister_Type 
  49.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  50.       Type_Name   : in Standard.DDS.String); 
  51.    --  <dref>KeyedStringTypeSupport_unregister_type</dref> 
  52.  
  53.    function Get_Type_Name return Standard.DDS.String; 
  54.    --  <dref>KeyedStringTypeSupport_get_type_name</dref> 
  55.  
  56.  
  57.    function Create_Data (AllocatePointers : in Boolean := True) 
  58.                          return DDS.KeyedString; 
  59.  
  60.    procedure Delete_Data 
  61.      (A_Data : in out DDS.KeyedString; DeletePointers : in Boolean := True); 
  62.  
  63.    procedure Print_Data (A_Data : access DDS.KeyedString); 
  64.    --  <dref>KeyedStringTypeSupport_print_data</dref> 
  65.  
  66.    function Create_Data_W_Size 
  67.      (Key_Size : Integer; 
  68.       Size     : Integer) 
  69.       return DDS.KeyedString; 
  70.  
  71.    procedure Initialize_Data_W_Size 
  72.      (A_Data   : access DDS.KeyedString; 
  73.       Key_Size : Integer; 
  74.       Size     : Integer); 
  75.  
  76.  
  77.    package Treats is new 
  78.      DDS.Treats_Generic (Data_Type        => DDS.KeyedString, 
  79.                          Data_Type_Access => DDS.KeyedString_Ptr, 
  80.                          Index_Type       => Natural, 
  81.                          First_Element    => 1, 
  82.                          Data_Array       => DDS.KeyedString_Array, 
  83.                          Initialize       => Initialize, 
  84.                          Finalize         => Finalize, 
  85.                          Copy             => Copy, 
  86.                          Data_Sequences   => DDS.KeyedString_Seq, 
  87.                          Get_Type_Name    => Get_Type_Name, 
  88.                          TypeSupport      => Ref, 
  89.                          MetpTypeSupport  => DDS.MetpTypeSupport_None.Ref); 
  90.    procedure Get_Type_Name (Name : out Standard.DDS.String); 
  91.  
  92. end DDS.Builtin_KeyedString_TypeSupport;