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.MetpTypeSupport; 
  13. with DDS.DataReader; 
  14. with DDS.DataWriter; 
  15. with DDS.Treats_Generic; 
  16.  
  17. --  <defgroup>KeyedStringBuiltInTypeGroupDocs</defgroup> 
  18. --  <dref>KeyedStringTypeSupport</dref> 
  19. package DDS.Builtin_KeyedString_TypeSupport is 
  20.  
  21.    type Ref is new Standard.DDS.TypeSupport.Ref with null record; 
  22.    type Ref_Access is access all Ref'Class; 
  23.  
  24.    function Create_TypedDataReaderI 
  25.      (Self : access Ref) return Standard.DDS.DataReader.Ref_Access; 
  26.  
  27.    procedure Destroy_TypedDataReaderI 
  28.      (Self   : access Ref; 
  29.       Reader : in out Standard.DDS.DataReader.Ref_Access); 
  30.  
  31.    function Create_TypedDataWriterI 
  32.      (Self : access Ref) return Standard.DDS.DataWriter.Ref_Access; 
  33.  
  34.    procedure Destroy_TypedDataWriterI 
  35.      (Self   : access Ref; 
  36.       Writer : in out Standard.DDS.DataWriter.Ref_Access) is null; 
  37.  
  38.    --  <internal> 
  39.    --  static methods 
  40.    --  </internal> 
  41.  
  42.    procedure Register_Type 
  43.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  44.       Type_Name   : in Standard.DDS.String); 
  45.    --  <dref>KeyedStringTypeSupport_register_type</dref> 
  46.  
  47.    procedure Unregister_Type 
  48.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  49.       Type_Name   : in Standard.DDS.String); 
  50.    --  <dref>KeyedStringTypeSupport_unregister_type</dref> 
  51.  
  52.    function Get_Type_Name return Standard.DDS.String; 
  53.    --  <dref>KeyedStringTypeSupport_get_type_name</dref> 
  54.  
  55.    procedure Get_Type_Name (Name : out Standard.DDS.String); 
  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.Unsupported); 
  90.  
  91. end DDS.Builtin_KeyedString_TypeSupport;