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