pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);

---------------------------------------------------
--  This file has been generated automatically from
--  /wrkdirs/usr/ports/net/polyorb/work/polyorb-2.9.0/idls/cos/naming/CosNaming.idl
--  by IAC (IDL to Ada Compiler) 2.9.0 (rev. unknown).
---------------------------------------------------
--  NOTE: If you modify this file by hand, your
--  changes will be lost when you re-run the
--  IDL to Ada compiler.
---------------------------------------------------

with CORBA;
pragma Elaborate_All (CORBA);
with CORBA.Object;
with PolyORB.Any;
with PolyORB.Types;
with PolyORB.Sequences.Unbounded.CORBA_Helper;
pragma Elaborate_All (PolyORB.Sequences.Unbounded.CORBA_Helper);

package CosNaming.Helper is

   TC_Istring : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.Istring;

   function To_Any
     (Item : CosNaming.Istring)
     return CORBA.Any;

   TC_NameComponent : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.NameComponent;

   function To_Any
     (Item : CosNaming.NameComponent)
     return CORBA.Any;

   TC_IDL_SEQUENCE_CosNaming_NameComponent : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.IDL_SEQUENCE_CosNaming_NameComponent.Sequence;

   function To_Any
     (Item : CosNaming.IDL_SEQUENCE_CosNaming_NameComponent.Sequence)
     return CORBA.Any;

   TC_Name : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.Name;

   function To_Any
     (Item : CosNaming.Name)
     return CORBA.Any;

   TC_BindingType : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.BindingType;

   function To_Any
     (Item : CosNaming.BindingType)
     return CORBA.Any;

   TC_Binding : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.Binding;

   function To_Any
     (Item : CosNaming.Binding)
     return CORBA.Any;

   TC_IDL_SEQUENCE_CosNaming_Binding : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.IDL_SEQUENCE_CosNaming_Binding.Sequence;

   function To_Any
     (Item : CosNaming.IDL_SEQUENCE_CosNaming_Binding.Sequence)
     return CORBA.Any;

   TC_BindingList : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.BindingList;

   function To_Any
     (Item : CosNaming.BindingList)
     return CORBA.Any;

   TC_BindingIterator : CORBA.TypeCode.Object;

   function From_Any
     (Item : CORBA.Any)
     return CosNaming.BindingIterator_Forward.Ref;

   function To_Any
     (Item : CosNaming.BindingIterator_Forward.Ref)
     return CORBA.Any;

   function Unchecked_To_Ref
     (The_Ref : CORBA.Object.Ref'Class)
     return CosNaming.BindingIterator_Forward.Ref;

   function To_Ref
     (The_Ref : CORBA.Object.Ref'Class)
     return CosNaming.BindingIterator_Forward.Ref;

   
   package Internals is

      function Wrap
        (X : access CosNaming.Istring)
        return PolyORB.Any.Content'Class;

      procedure Initialize_Istring;

      type Ptr_Ü_NameComponent is
        access all CosNaming.NameComponent;

      type Content_Ü_NameComponent is
        new PolyORB.Any.Aggregate_Content with record
            V : Ptr_Ü_NameComponent;
         end record;

      function Get_Aggregate_Element
        (Acc : not null access Content_Ü_NameComponent;
         Tc : PolyORB.Any.TypeCode.Object_Ptr;
         Index : PolyORB.Types.Unsigned_Long;
         Mech : not null access PolyORB.Any.Mechanism)
        return PolyORB.Any.Content'Class;

      function Get_Aggregate_Count
        (Acc : Content_Ü_NameComponent)
        return PolyORB.Types.Unsigned_Long;

      procedure Set_Aggregate_Count
        (Acc : in out Content_Ü_NameComponent;
         Count : PolyORB.Types.Unsigned_Long);

      function Unchecked_Get_V
        (Acc : not null access Content_Ü_NameComponent)
        return PolyORB.Types.Address;

      function Clone
        (Acc : Content_Ü_NameComponent;
         Into : PolyORB.Any.Content_Ptr := null)
        return PolyORB.Any.Content_Ptr;

      procedure Finalize_Value
        (Acc : in out Content_Ü_NameComponent);

      function Wrap
        (X : access CosNaming.NameComponent)
        return PolyORB.Any.Content'Class;

      procedure Initialize_NameComponent;

      function IDL_SEQUENCE_CosNaming_NameComponent_Element_Wrap
        (X : access CosNaming.NameComponent)
        return PolyORB.Any.Content'Class;

      function Wrap
        (X : access CosNaming.IDL_SEQUENCE_CosNaming_NameComponent.Sequence)
        return PolyORB.Any.Content'Class;

      package IDL_SEQUENCE_CosNaming_NameComponent_Helper is
        new CosNaming.IDL_SEQUENCE_CosNaming_NameComponent.CORBA_Helper
           (Element_From_Any => CosNaming.Helper.From_Any,
            Element_To_Any => CosNaming.Helper.To_Any,
            Element_Wrap => CosNaming.Helper.Internals.IDL_SEQUENCE_CosNaming_NameComponent_Element_Wrap);

      procedure Initialize_IDL_SEQUENCE_CosNaming_NameComponent;

      procedure Initialize_Name;

      function From_Any
        (C : PolyORB.Any.Any_Container'Class)
        return CosNaming.BindingType;

      type Ptr_Ü_BindingType is
        access all CosNaming.BindingType;

      type Content_Ü_BindingType is
        new PolyORB.Any.Aggregate_Content with record
            V : Ptr_Ü_BindingType;
            Repr_Cache : aliased PolyORB.Types.Unsigned_Long;
         end record;

      function Get_Aggregate_Element
        (Acc : not null access Content_Ü_BindingType;
         Tc : PolyORB.Any.TypeCode.Object_Ptr;
         Index : PolyORB.Types.Unsigned_Long;
         Mech : not null access PolyORB.Any.Mechanism)
        return PolyORB.Any.Content'Class;

      procedure Set_Aggregate_Element
        (Acc : in out Content_Ü_BindingType;
         Tc : PolyORB.Any.TypeCode.Object_Ptr;
         Index : PolyORB.Types.Unsigned_Long;
         From_C : in out PolyORB.Any.Any_Container'Class);

      function Get_Aggregate_Count
        (Acc : Content_Ü_BindingType)
        return PolyORB.Types.Unsigned_Long;

      procedure Set_Aggregate_Count
        (Acc : in out Content_Ü_BindingType;
         Count : PolyORB.Types.Unsigned_Long);

      function Unchecked_Get_V
        (Acc : not null access Content_Ü_BindingType)
        return PolyORB.Types.Address;

      function Clone
        (Acc : Content_Ü_BindingType;
         Into : PolyORB.Any.Content_Ptr := null)
        return PolyORB.Any.Content_Ptr;

      procedure Finalize_Value
        (Acc : in out Content_Ü_BindingType);

      function Wrap
        (X : access CosNaming.BindingType)
        return PolyORB.Any.Content'Class;

      procedure Initialize_BindingType;

      type Ptr_Ü_Binding is
        access all CosNaming.Binding;

      type Content_Ü_Binding is
        new PolyORB.Any.Aggregate_Content with record
            V : Ptr_Ü_Binding;
         end record;

      function Get_Aggregate_Element
        (Acc : not null access Content_Ü_Binding;
         Tc : PolyORB.Any.TypeCode.Object_Ptr;
         Index : PolyORB.Types.Unsigned_Long;
         Mech : not null access PolyORB.Any.Mechanism)
        return PolyORB.Any.Content'Class;

      function Get_Aggregate_Count
        (Acc : Content_Ü_Binding)
        return PolyORB.Types.Unsigned_Long;

      procedure Set_Aggregate_Count
        (Acc : in out Content_Ü_Binding;
         Count : PolyORB.Types.Unsigned_Long);

      function Unchecked_Get_V
        (Acc : not null access Content_Ü_Binding)
        return PolyORB.Types.Address;

      function Clone
        (Acc : Content_Ü_Binding;
         Into : PolyORB.Any.Content_Ptr := null)
        return PolyORB.Any.Content_Ptr;

      procedure Finalize_Value
        (Acc : in out Content_Ü_Binding);

      function Wrap
        (X : access CosNaming.Binding)
        return PolyORB.Any.Content'Class;

      procedure Initialize_Binding;

      function IDL_SEQUENCE_CosNaming_Binding_Element_Wrap
        (X : access CosNaming.Binding)
        return PolyORB.Any.Content'Class;

      function Wrap
        (X : access CosNaming.IDL_SEQUENCE_CosNaming_Binding.Sequence)
        return PolyORB.Any.Content'Class;

      package IDL_SEQUENCE_CosNaming_Binding_Helper is
        new CosNaming.IDL_SEQUENCE_CosNaming_Binding.CORBA_Helper
           (Element_From_Any => CosNaming.Helper.From_Any,
            Element_To_Any => CosNaming.Helper.To_Any,
            Element_Wrap => CosNaming.Helper.Internals.IDL_SEQUENCE_CosNaming_Binding_Element_Wrap);

      procedure Initialize_IDL_SEQUENCE_CosNaming_Binding;

      procedure Initialize_BindingList;

      procedure Initialize_BindingIterator;

   end Internals;

end CosNaming.Helper;
