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. --  <defgroup>KeyedOctetsBuiltInTypeGroupDocs</defgroup> 
  16. --  <dref>KeyedOctetsTypeSupport</dref> 
  17. package DDS.Builtin_KeyedOctets_TypeSupport is 
  18.    pragma Suppress (elaboration_Check); 
  19.    type Ref is new Standard.DDS.TypeSupport.Ref with null record; 
  20.    type Ref_Access is access all Ref'Class; 
  21.  
  22.    function Create_TypedDataReaderI 
  23.      (Self : access Ref) return Standard.DDS.DataReader.Ref_Access; 
  24.  
  25.    procedure Destroy_TypedDataReaderI 
  26.      (Self   : access Ref; 
  27.       Reader : in out Standard.DDS.DataReader.Ref_Access); 
  28.  
  29.    function Create_TypedDataWriterI 
  30.      (Self : access Ref) return Standard.DDS.DataWriter.Ref_Access; 
  31.  
  32.    procedure Destroy_TypedDataWriterI 
  33.      (Self   : access Ref; 
  34.       Writer : in out Standard.DDS.DataWriter.Ref_Access) is null; 
  35.  
  36.    --  <internal> 
  37.    --  static methods 
  38.    --  </internal> 
  39.  
  40.    procedure Register_Type 
  41.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  42.       Type_Name   : in Standard.DDS.String); 
  43.    --  <dref>KeyedOctetsTypeSupport_register_type</dref> 
  44.  
  45.    procedure Unregister_Type 
  46.      (Participant : not null access Standard.DDS.DomainParticipant.Ref'Class; 
  47.       Type_Name   : in Standard.DDS.String); 
  48.    --  <dref>KeyedOctetsTypeSupport_unregister_type</dref> 
  49.  
  50.    function Get_Type_Name return Standard.DDS.String; 
  51.    --  <dref>KeyedOctetsTypeSupport_get_type_name</dref> 
  52.  
  53.    procedure Get_Type_Name (Name : out Standard.DDS.String); 
  54.  
  55.    procedure Print_Data (A_Data : access DDS.KeyedOctets); 
  56.    --  <dref>KeyedOctetsTypeSupport_print_data</dref> 
  57.  
  58.    function Create_Data_W_Size 
  59.      (Key_Size : Integer; 
  60.       Size     : Integer) 
  61.       return DDS.KeyedOctets; 
  62.  
  63.    procedure Initialize_Data_W_Size 
  64.      (A_Data   : access DDS.KeyedOctets; 
  65.       Key_Size : Integer; 
  66.       Size     : Integer); 
  67.  
  68.    function From_KeyedOctets_To_Octet_Array 
  69.      (Octets : DDS.KeyedOctets) 
  70.       return DDS.Octet_Array; 
  71.  
  72.    function Get_Octet 
  73.      (Octets : DDS.KeyedOctets; 
  74.       Index  : Integer) 
  75.       return Interfaces.Unsigned_8; 
  76.  
  77.  
  78.    package Treats is new 
  79.      DDS.Treats_Generic (Data_Type        => DDS.KeyedOctets, 
  80.                          Data_Type_Access => DDS.KeyedOctets_Ptr, 
  81.                          Index_Type       => Natural, 
  82.                          First_Element    => 1, 
  83.                          Data_Array       => DDS.KeyedOctets_Array, 
  84.                          Initialize       => Initialize, 
  85.                          Finalize         => Finalize, 
  86.                          Copy             => Copy, 
  87.                          Data_Sequences   => DDS.KeyedOctets_Seq, 
  88.                          Get_Type_Name    => Get_Type_Name, 
  89.                          TypeSupport      => Ref); 
  90.  
  91. end DDS.Builtin_KeyedOctets_TypeSupport;