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. --  <module name="DDSBuiltInTypesModule" actualName="Built-in Types">builtintypes</module> 
  17. --  <defgroup>StringBuiltInTypeGroupDocs</defgroup> 
  18. --  <dref>StringTypeSupport</dref> 
  19. package DDS.Builtin_String_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>StringTypeSupport_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>StringTypeSupport_unregister_type</dref> 
  51.  
  52.    function Get_Type_Name return Standard.DDS.String; 
  53.    --  <dref>StringTypeSupport_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.String; 
  59.  
  60.    procedure Delete_Data 
  61.      (A_Data : in out DDS.String; DeletePointers : in Boolean := True); 
  62.  
  63.    procedure Print_Data (A_Data : DDS.String); 
  64.    --  <dref>StringTypeSupport_print_data</dref> 
  65.  
  66.    procedure Copy_Data (Desc : DDS.String; Source : DDS.String); 
  67.  
  68.    procedure Initialize_Data (A_Data : DDS.String); 
  69.  
  70.    procedure Finalize_Data (A_Data : DDS.String); 
  71.  
  72.    function Create_Data_W_Size 
  73.      (Size : Integer) 
  74.       return DDS.String; 
  75.  
  76.    procedure Initialize_Data_W_Size 
  77.      (A_Data : DDS.String; 
  78.       Size   : Integer); 
  79.  
  80.  
  81.    package Treats is new 
  82.      DDS.Treats_Generic (Data_Type        => DDS.String, 
  83.                          Data_Type_Access => DDS.String_Ptr, 
  84.                          Index_Type       => Natural, 
  85.                          First_Element    => 1, 
  86.                          Data_Array       => DDS.String_Array, 
  87.                          Initialize       => Initialize, 
  88.                          Finalize         => Finalize, 
  89.                          Copy             => Copy, 
  90.                          Data_Sequences   => DDS.String_Seq, 
  91.                          Get_Type_Name    => DDS.Builtin_String_TypeSupport.Get_Type_Name, 
  92.                          TypeSupport      => Ref, 
  93.                          MetpTypeSupport  => DDS.MetpTypeSupport.Unsupported); 
  94.  
  95. end DDS.Builtin_String_TypeSupport;