pragma Style_Checks ("NM32766");
pragma Wide_Character_Encoding (Brackets);
pragma Warnings (Off, "use of an anonymous access type allocator");

---------------------------------------------------
--  This file has been generated automatically from
--  /pbulk/work/net/ada-polyorb/work/PolyORB-25.0/idls/cos/naming/CosNaming.idl
--  by IAC (IDL to Ada Compiler) 25.0w (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;

package CosNaming.NamingContext.Helper is

   TC_NamingContext : CORBA.TypeCode.Object;

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

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

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

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

   TC_NotFoundReason : CORBA.TypeCode.Object;

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

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

   TC_NotFound : CORBA.TypeCode.Object;

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

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

   procedure Raise_NotFound
     (Members : CosNaming.NamingContext.NotFound_Members);

   pragma No_Return (Raise_NotFound);

   TC_CannotProceed : CORBA.TypeCode.Object;

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

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

   procedure Raise_CannotProceed
     (Members : CosNaming.NamingContext.CannotProceed_Members);

   pragma No_Return (Raise_CannotProceed);

   TC_InvalidName : CORBA.TypeCode.Object;

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

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

   procedure Raise_InvalidName
     (Members : CosNaming.NamingContext.InvalidName_Members);

   pragma No_Return (Raise_InvalidName);

   TC_AlreadyBound : CORBA.TypeCode.Object;

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

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

   procedure Raise_AlreadyBound
     (Members : CosNaming.NamingContext.AlreadyBound_Members);

   pragma No_Return (Raise_AlreadyBound);

   TC_NotEmpty : CORBA.TypeCode.Object;

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

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

   procedure Raise_NotEmpty
     (Members : CosNaming.NamingContext.NotEmpty_Members);

   pragma No_Return (Raise_NotEmpty);

   
   package Internals is

      procedure Initialize_NamingContext;

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

      type Ptr_Ü_NotFoundReason is
        access all CosNaming.NamingContext.NotFoundReason;

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

      function Get_Aggregate_Element
        (Acc : not null access Content_Ü_NotFoundReason;
         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_Ü_NotFoundReason;
         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_Ü_NotFoundReason)
        return PolyORB.Types.Unsigned_Long;

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

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

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

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

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

      procedure Initialize_NotFoundReason;

      procedure Initialize_NotFound;

      procedure Initialize_CannotProceed;

      procedure Initialize_InvalidName;

      procedure Initialize_AlreadyBound;

      procedure Initialize_NotEmpty;

   end Internals;

end CosNaming.NamingContext.Helper;
