pragma Style_Checks ("NM32766");

---------------------------------------------------
--  This file has been generated automatically from
--  /wrkdirs/usr/ports/net/polyorb/work/polyorb-2.9.0/idls/CORBA_IDL/orb.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 PolyORB.Any.NVList;
with CORBA.Repository_Root.InterfaceAttrExtension.Helper;
with PolyORB.Any;
with PolyORB.Requests;
with PolyORB.Types;
with CORBA.Object;
with PolyORB.CORBA_P.Interceptors_Hooks;
with PolyORB.CORBA_P.Exceptions;
with CORBA.Object.Helper;
with CORBA.Helper;
with CORBA.Repository_Root.Helper;
with CORBA.Repository_Root.IDLType.Helper;
with CORBA.Repository_Root;
with CORBA.Repository_Root.ExtAttributeDef.Helper;
with CORBA.Repository_Root.Container;
with CORBA.Repository_Root.IRObject;
with CORBA.Repository_Root.Contained;

package body CORBA.Repository_Root.ExtInterfaceDef is

   describe_ext_interface_Result_Name_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("Result");

   -------------------------------------
   -- describe_ext_interface_Result_Ü --
   -------------------------------------

   function describe_ext_interface_Result_Ü return PolyORB.Any.NamedValue is
      pragma Inline (describe_ext_interface_Result_Ü);
   begin
      return (Name => describe_ext_interface_Result_Name_Ü,
      Argument => CORBA.Internals.Get_Empty_Any
        (CORBA.Repository_Root.InterfaceAttrExtension.Helper.TC_ExtFullInterfaceDescription),
      Arg_Modes => 0);
   end describe_ext_interface_Result_Ü;

   ----------------------------
   -- describe_ext_interface --
   ----------------------------

   function describe_ext_interface
     (Self : Ref)
     return CORBA.Repository_Root.InterfaceAttrExtension.ExtFullInterfaceDescription
   is
      Argument_List_Ü : PolyORB.Any.NVList.Ref;
      Result_Ü : CORBA.Repository_Root.InterfaceAttrExtension.ExtFullInterfaceDescription;
      pragma Warnings (Off, Result_Ü);
      pragma Suppress (Validity_Check, Result_Ü);
      Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Repository_Root.InterfaceAttrExtension.Helper.Internals.Wrap
           (Result_Ü'Unrestricted_Access);
      Request_Ü : aliased PolyORB.Requests.Request;
      Result_Nv_Ü : PolyORB.Any.NamedValue :=
        describe_ext_interface_Result_Ü;
   begin
      if CORBA.Object.Is_Nil
        (CORBA.Object.Ref
           (Self))
      then
         CORBA.Raise_Inv_Objref
           (CORBA.Default_Sys_Member);
      end if;
      --  Create the Argument list
      PolyORB.Any.NVList.Create
        (Argument_List_Ü);
      --  Setting the result value
      PolyORB.Any.Set_Value
        (PolyORB.Any.Get_Container
           (Result_Nv_Ü.Argument).all,
         Arg_CC_Result_Ü_Ü'Unrestricted_Access);
      --  Creating the request
      PolyORB.Requests.Setup_Request
        (Req => Request_Ü,
         Target => CORBA.Object.Internals.To_PolyORB_Ref
           (CORBA.Object.Ref
              (Self)),
         Operation => "describe_ext_interface",
         Arg_List => Argument_List_Ü,
         Result => Result_Nv_Ü);
      --  Invoking the request (synchronously or asynchronously)
      PolyORB.CORBA_P.Interceptors_Hooks.Client_Invoke
        (Request_Ü'Access,
         PolyORB.Requests.Flags
           (0));
      --  Raise exception, if needed
      PolyORB.CORBA_P.Exceptions.Request_Raise_Occurrence
        (Request_Ü);
      --  Return value
      return Result_Ü;
   end describe_ext_interface;

   create_ext_attribute_Arg_Name_id_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("id");

   create_ext_attribute_Arg_Name_name_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("name");

   create_ext_attribute_Arg_Name_version_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("version");

   create_ext_attribute_Arg_Name_IDL_type_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("IDL_type");

   create_ext_attribute_Arg_Name_mode_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("mode");

   create_ext_attribute_Arg_Name_get_exceptions_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("get_exceptions");

   create_ext_attribute_Arg_Name_set_exceptions_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("set_exceptions");

   create_ext_attribute_Result_Name_Ü : constant PolyORB.Types.Identifier :=
     PolyORB.Types.To_PolyORB_String
        ("Result");

   -----------------------------------
   -- create_ext_attribute_Result_Ü --
   -----------------------------------

   function create_ext_attribute_Result_Ü return PolyORB.Any.NamedValue is
      pragma Inline (create_ext_attribute_Result_Ü);
   begin
      return (Name => create_ext_attribute_Result_Name_Ü,
      Argument => CORBA.Internals.Get_Empty_Any
        (CORBA.Repository_Root.ExtAttributeDef.Helper.TC_ExtAttributeDef),
      Arg_Modes => 0);
   end create_ext_attribute_Result_Ü;

   --------------------------
   -- create_ext_attribute --
   --------------------------

   function create_ext_attribute
     (Self : Ref;
      id : CORBA.RepositoryId;
      name : CORBA.Identifier;
      version : CORBA.Repository_Root.VersionSpec;
      IDL_type : CORBA.Repository_Root.IDLType.Ref;
      mode : CORBA.Repository_Root.AttributeMode;
      get_exceptions : CORBA.Repository_Root.ExceptionDefSeq;
      set_exceptions : CORBA.Repository_Root.ExceptionDefSeq)
     return CORBA.Repository_Root.ExtAttributeDef.Ref
   is
      Argument_List_Ü : PolyORB.Any.NVList.Ref;
      Result_Ü : CORBA.Repository_Root.ExtAttributeDef.Ref;
      pragma Warnings (Off, Result_Ü);
      pragma Suppress (Validity_Check, Result_Ü);
      Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Object.Helper.Wrap
           (CORBA.Object.Ref
              (Result_Ü)'Unrestricted_Access);
      Arg_CC_id_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Wrap
           (CORBA.String
              (id)'Unrestricted_Access);
      Arg_Any_id_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Helper.TC_RepositoryId,
            Arg_CC_id_Ü'Unchecked_Access);
      Arg_CC_name_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Wrap
           (CORBA.String
              (name)'Unrestricted_Access);
      Arg_Any_name_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Helper.TC_Identifier,
            Arg_CC_name_Ü'Unchecked_Access);
      Arg_CC_version_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Wrap
           (CORBA.String
              (version)'Unrestricted_Access);
      Arg_Any_version_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Repository_Root.Helper.TC_VersionSpec,
            Arg_CC_version_Ü'Unchecked_Access);
      Arg_CC_IDL_type_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Object.Helper.Wrap
           (CORBA.Object.Ref
              (IDL_type)'Unrestricted_Access);
      Arg_Any_IDL_type_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Repository_Root.IDLType.Helper.TC_IDLType,
            Arg_CC_IDL_type_Ü'Unchecked_Access);
      Arg_CC_mode_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Repository_Root.Helper.Internals.Wrap
           (mode'Unrestricted_Access);
      Arg_Any_mode_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Repository_Root.Helper.TC_AttributeMode,
            Arg_CC_mode_Ü'Unchecked_Access);
      Arg_CC_get_exceptions_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Repository_Root.Helper.Internals.Wrap
           (CORBA.Repository_Root.IDL_SEQUENCE_CORBA_ExceptionDef_Forward.Sequence
              (get_exceptions)'Unrestricted_Access);
      Arg_Any_get_exceptions_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Repository_Root.Helper.TC_ExceptionDefSeq,
            Arg_CC_get_exceptions_Ü'Unchecked_Access);
      Arg_CC_set_exceptions_Ü : aliased PolyORB.Any.Content'Class :=
        CORBA.Repository_Root.Helper.Internals.Wrap
           (CORBA.Repository_Root.IDL_SEQUENCE_CORBA_ExceptionDef_Forward.Sequence
              (set_exceptions)'Unrestricted_Access);
      Arg_Any_set_exceptions_Ü : constant CORBA.Any :=
        CORBA.Internals.Get_Wrapper_Any
           (CORBA.Repository_Root.Helper.TC_ExceptionDefSeq,
            Arg_CC_set_exceptions_Ü'Unchecked_Access);
      Request_Ü : aliased PolyORB.Requests.Request;
      Result_Nv_Ü : PolyORB.Any.NamedValue :=
        create_ext_attribute_Result_Ü;
   begin
      if CORBA.Object.Is_Nil
        (CORBA.Object.Ref
           (Self))
      then
         CORBA.Raise_Inv_Objref
           (CORBA.Default_Sys_Member);
      end if;
      --  Create the Argument list
      PolyORB.Any.NVList.Create
        (Argument_List_Ü);
      --  Fill the Argument list
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_id_Ü,
         PolyORB.Any.Any
           (Arg_Any_id_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_name_Ü,
         PolyORB.Any.Any
           (Arg_Any_name_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_version_Ü,
         PolyORB.Any.Any
           (Arg_Any_version_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_IDL_type_Ü,
         PolyORB.Any.Any
           (Arg_Any_IDL_type_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_mode_Ü,
         PolyORB.Any.Any
           (Arg_Any_mode_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_get_exceptions_Ü,
         PolyORB.Any.Any
           (Arg_Any_get_exceptions_Ü),
         PolyORB.Any.ARG_IN);
      PolyORB.Any.NVList.Add_Item
        (Argument_List_Ü,
         create_ext_attribute_Arg_Name_set_exceptions_Ü,
         PolyORB.Any.Any
           (Arg_Any_set_exceptions_Ü),
         PolyORB.Any.ARG_IN);
      --  Setting the result value
      PolyORB.Any.Set_Value
        (PolyORB.Any.Get_Container
           (Result_Nv_Ü.Argument).all,
         Arg_CC_Result_Ü_Ü'Unrestricted_Access);
      --  Creating the request
      PolyORB.Requests.Setup_Request
        (Req => Request_Ü,
         Target => CORBA.Object.Internals.To_PolyORB_Ref
           (CORBA.Object.Ref
              (Self)),
         Operation => "create_ext_attribute",
         Arg_List => Argument_List_Ü,
         Result => Result_Nv_Ü);
      --  Invoking the request (synchronously or asynchronously)
      PolyORB.CORBA_P.Interceptors_Hooks.Client_Invoke
        (Request_Ü'Access,
         PolyORB.Requests.Flags
           (0));
      --  Raise exception, if needed
      PolyORB.CORBA_P.Exceptions.Request_Raise_Occurrence
        (Request_Ü);
      --  Return value
      return Result_Ü;
   end create_ext_attribute;

   ----------
   -- Is_A --
   ----------

   function Is_A
     (Self : Ref;
      Logical_Type_Id : PolyORB.Std.String)
     return CORBA.Boolean
   is
   begin
      return (False
         or else (Is_A
           (Logical_Type_Id)
            or else CORBA.Object.Is_A
              (CORBA.Object.Ref
                 (Self),
               Logical_Type_Id)));
   end Is_A;

   ----------
   -- Is_A --
   ----------

   function Is_A
     (Logical_Type_Id : PolyORB.Std.String)
     return CORBA.Boolean
   is
   begin
      return (((CORBA.Is_Equivalent
        (Logical_Type_Id,
         CORBA.Repository_Root.ExtInterfaceDef.Repository_Id)
         or else CORBA.Is_Equivalent
           (Logical_Type_Id,
            "IDL:omg.org/CORBA/Object:1.0"))
         or else ((CORBA.Is_Equivalent
           (Logical_Type_Id,
            CORBA.Repository_Root.InterfaceDef.Repository_Id)
            or else (((((CORBA.Is_Equivalent
              (Logical_Type_Id,
               CORBA.Repository_Root.Container.Repository_Id)
               or else CORBA.Is_Equivalent
                 (Logical_Type_Id,
                  CORBA.Repository_Root.IRObject.Repository_Id))
               or else CORBA.Is_Equivalent
                 (Logical_Type_Id,
                  CORBA.Repository_Root.Contained.Repository_Id))
               or else CORBA.Is_Equivalent
                 (Logical_Type_Id,
                  CORBA.Repository_Root.IRObject.Repository_Id))
               or else CORBA.Is_Equivalent
                 (Logical_Type_Id,
                  CORBA.Repository_Root.IDLType.Repository_Id))
               or else CORBA.Is_Equivalent
                 (Logical_Type_Id,
                  CORBA.Repository_Root.IRObject.Repository_Id)))
            or else CORBA.Is_Equivalent
              (Logical_Type_Id,
               CORBA.Repository_Root.InterfaceAttrExtension.Repository_Id)))
         or else False);
   end Is_A;

end CORBA.Repository_Root.ExtInterfaceDef;
