------------------------------------------------------------------------------
--                                                                          --
--                           POLYORB COMPONENTS                             --
--                                                                          --
--       P O L Y O R B . S E R V I C E S . N A M I N G . H E L P E R        --
--                                                                          --
--                                 S p e c                                  --
--                                                                          --
--         Copyright (C) 2002-2012, Free Software Foundation, Inc.          --
--                                                                          --
-- This is free software;  you can redistribute it  and/or modify it  under --
-- terms of the  GNU General Public License as published  by the Free Soft- --
-- ware  Foundation;  either version 3,  or (at your option) any later ver- --
-- sion.  This software is distributed in the hope  that it will be useful, --
-- but WITHOUT ANY WARRANTY;  without even the implied warranty of MERCHAN- --
-- TABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public --
-- License for  more details.                                               --
--                                                                          --
--                                                                          --
-- You should have received a copy of the GNU General Public License and    --
-- a copy of the GCC Runtime Library Exception along with this program;     --
-- see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see    --
-- <http://www.gnu.org/licenses/>.                                          --
--                                                                          --
--                  PolyORB is maintained by AdaCore                        --
--                     (email: sales@adacore.com)                           --
--                                                                          --
------------------------------------------------------------------------------

with PolyORB.Any;

with PolyORB.References;

package PolyORB.Services.Naming.Helper is

   pragma Elaborate_Body;

   --  Istring type

   TC_Istring : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return Istring;
   function To_Any (Item : Istring) return PolyORB.Any.Any;

   --  NameComponent type

   TC_NameComponent : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return NameComponent;
   function To_Any (Item : NameComponent) return PolyORB.Any.Any;

   --  Sequence of NameComponent type

   TC_SEQUENCE_NameComponent : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any
     (Item : PolyORB.Any.Any) return SEQUENCE_NameComponent.Sequence;

   function To_Any
     (Item : SEQUENCE_NameComponent.Sequence) return PolyORB.Any.Any;

   --  Name type

   TC_Name : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return Name;
   function To_Any (Item : Name) return PolyORB.Any.Any;

   --  BindingType type

   TC_BindingType : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return BindingType;
   function To_Any (Item : BindingType) return PolyORB.Any.Any;

   --  Binding type

   TC_Binding : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return Binding;
   function To_Any (Item : Binding) return PolyORB.Any.Any;

   --  Sequence of Binding type

   TC_SEQUENCE_Binding : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return SEQUENCE_Binding.Sequence;
   function To_Any (Item : SEQUENCE_Binding.Sequence) return PolyORB.Any.Any;

   --  BindingList type

   TC_BindingList : PolyORB.Any.TypeCode.Local_Ref;

   function From_Any (Item : PolyORB.Any.Any) return BindingList;
   function To_Any (Item : BindingList) return PolyORB.Any.Any;

   --  ??? Naming::Object ???

   TC_Object : PolyORB.Any.TypeCode.Local_Ref;

   function To_Any (Item : PolyORB.References.Ref)
                    return PolyORB.Any.Any;

end PolyORB.Services.Naming.Helper;
