pragma Style_Checks ("NM32766");

---------------------------------------------------
--  This file has been generated automatically from
--  /work/a/ports/net/polyorb/work/polyorb-2.9.0/idls/cos/notification/CosNotifyChannelAdmin.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 CosNotifyChannelAdmin.EventChannel.Impl;
with CORBA.Object.Helper;
with CORBA.Object;
with PolyORB.Any;
with CosNotifyChannelAdmin.EventChannelFactory.Helper;
with CORBA;
pragma Elaborate_All (CORBA);
with CORBA.ServerRequest;
with CORBA.NVList;
with CosNotifyChannelAdmin.ConsumerAdmin;
with CosNotifyChannelAdmin.ConsumerAdmin.Helper;
with CosNotifyChannelAdmin.SupplierAdmin;
with CosNotifyChannelAdmin.SupplierAdmin.Helper;
with CosNotifyFilter.FilterFactory;
with CosNotifyFilter.FilterFactory.Helper;
with CosNotifyChannelAdmin.Helper;
with CosNotification;
with CosNotification.Helper;
with CosEventChannelAdmin.ConsumerAdmin;
with CosEventChannelAdmin.ConsumerAdmin.Helper;
with CosEventChannelAdmin.SupplierAdmin;
with CosEventChannelAdmin.SupplierAdmin.Helper;
with PolyORB.CORBA_P.IR_Hooks;
with PolyORB.CORBA_P.Domain_Management;
with CosNotifyChannelAdmin_EventChannel_Hash;
with PolyORB.Std;
with PortableServer;
with CORBA.ORB;
with PolyORB.CORBA_P.Exceptions;
with PolyORB.Qos.Exception_Informations;
with PolyORB.Utils.Strings;
with PolyORB.Utils.Strings.Lists;
with PolyORB.Initialization;

package body CosNotifyChannelAdmin.EventChannel.Skel is

   new_for_consumers_Arg_Name_op_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("op");

   new_for_consumers_Arg_Name_id_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("id");

   new_for_suppliers_Arg_Name_op_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("op");

   new_for_suppliers_Arg_Name_id_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("id");

   get_consumeradmin_Arg_Name_id_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("id");

   get_supplieradmin_Arg_Name_id_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("id");

   set_qos_Arg_Name_qos_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("qos");

   validate_qos_Arg_Name_required_qos_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("required_qos");

   validate_qos_Arg_Name_available_qos_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("available_qos");

   set_admin_Arg_Name_admin_Ü : constant CORBA.Identifier :=
     CORBA.To_CORBA_String
        ("admin");

   N_Operations : constant PolyORB.Std.Natural :=
     23;

   type String_Ptr is
     access PolyORB.Std.String;

   Invoke_Db : array (0 .. (N_Operations
      - 1)) of String_Ptr :=
     (others => null);

   procedure Register_Procedure
     (Operation_Name : PolyORB.Std.String);

   ------------------------
   -- Register_Procedure --
   ------------------------

   procedure Register_Procedure
     (Operation_Name : PolyORB.Std.String)
   is
      Index_Ü : PolyORB.Std.Natural;
      Invoke_Name_Access : String_Ptr;
   begin
      Index_Ü :=
        CosNotifyChannelAdmin_EventChannel_Hash.Hash
           (Operation_Name);
      if (Invoke_Db
        (Index_Ü)
         /= null)
      then
         raise Program_Error;
      end if;
      Invoke_Name_Access :=
        new PolyORB.Std.String'
           (Operation_Name);
      Invoke_Db
        (Index_Ü) :=
        Invoke_Name_Access;
   end Register_Procedure;

   procedure Invoke
     (Self : PortableServer.Servant;
      Request : CORBA.ServerRequest.Object_Ptr);

   ------------
   -- Invoke --
   ------------

   procedure Invoke
     (Self : PortableServer.Servant;
      Request : CORBA.ServerRequest.Object_Ptr)
   is
      Operation_Ü : constant PolyORB.Std.String :=
        CORBA.To_Standard_String
           (CORBA.ServerRequest.Operation
              (Request.all));
      Argument_List_Ü : CORBA.NVList.Ref;
      Index_Ü : PolyORB.Std.Natural;
      Invoke_Name_Access : String_Ptr;

      procedure Invoke_Uget_MyFactory;

      ---------------------------
      -- Invoke_Uget_MyFactory --
      ---------------------------

      procedure Invoke_Uget_MyFactory is
         Result_Ü : CosNotifyChannelAdmin.EventChannelFactory_Forward.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.EventChannelFactory.Helper.TC_EventChannelFactory,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_MyFactory
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_Uget_MyFactory;

      procedure Invoke_Uget_default_consumer_admin;

      ----------------------------------------
      -- Invoke_Uget_default_consumer_admin --
      ----------------------------------------

      procedure Invoke_Uget_default_consumer_admin is
         Result_Ü : CosNotifyChannelAdmin.ConsumerAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.ConsumerAdmin.Helper.TC_ConsumerAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_default_consumer_admin
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_Uget_default_consumer_admin;

      procedure Invoke_Uget_default_supplier_admin;

      ----------------------------------------
      -- Invoke_Uget_default_supplier_admin --
      ----------------------------------------

      procedure Invoke_Uget_default_supplier_admin is
         Result_Ü : CosNotifyChannelAdmin.SupplierAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.SupplierAdmin.Helper.TC_SupplierAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_default_supplier_admin
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_Uget_default_supplier_admin;

      procedure Invoke_Uget_default_filter_factory;

      ----------------------------------------
      -- Invoke_Uget_default_filter_factory --
      ----------------------------------------

      procedure Invoke_Uget_default_filter_factory is
         Result_Ü : CosNotifyFilter.FilterFactory.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyFilter.FilterFactory.Helper.TC_FilterFactory,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_default_filter_factory
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_Uget_default_filter_factory;

      procedure Invoke_new_for_consumers;

      ------------------------------
      -- Invoke_new_for_consumers --
      ------------------------------

      procedure Invoke_new_for_consumers is
         Argument_op_Ü : CosNotifyChannelAdmin.InterFilterGroupOperator;
         pragma Warnings (Off, Argument_op_Ü);
         pragma Suppress (Validity_Check, Argument_op_Ü);
         Arg_CC_op_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyChannelAdmin.Helper.Internals.Wrap
              (Argument_op_Ü'Unrestricted_Access);
         Arg_Any_op_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_InterFilterGroupOperator,
               Arg_CC_op_Ü'Unchecked_Access);
         Argument_id_Ü : CosNotifyChannelAdmin.AdminID;
         pragma Warnings (Off, Argument_id_Ü);
         pragma Suppress (Validity_Check, Argument_id_Ü);
         Arg_CC_id_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Argument_id_Ü)'Unrestricted_Access);
         Arg_Any_id_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminID,
               Arg_CC_id_Ü'Unchecked_Access);
         Result_Ü : CosNotifyChannelAdmin.ConsumerAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.ConsumerAdmin.Helper.TC_ConsumerAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            new_for_consumers_Arg_Name_op_Ü,
            Arg_Any_op_Ü,
            CORBA.ARG_IN);
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            new_for_consumers_Arg_Name_id_Ü,
            Arg_Any_id_Ü,
            CORBA.ARG_OUT);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         CosNotifyChannelAdmin.EventChannel.Impl.new_for_consumers
           (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
              (Self.all)'Access,
            Argument_op_Ü,
            Argument_id_Ü,
            Result_Ü);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_new_for_consumers;

      procedure Invoke_new_for_suppliers;

      ------------------------------
      -- Invoke_new_for_suppliers --
      ------------------------------

      procedure Invoke_new_for_suppliers is
         Argument_op_Ü : CosNotifyChannelAdmin.InterFilterGroupOperator;
         pragma Warnings (Off, Argument_op_Ü);
         pragma Suppress (Validity_Check, Argument_op_Ü);
         Arg_CC_op_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyChannelAdmin.Helper.Internals.Wrap
              (Argument_op_Ü'Unrestricted_Access);
         Arg_Any_op_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_InterFilterGroupOperator,
               Arg_CC_op_Ü'Unchecked_Access);
         Argument_id_Ü : CosNotifyChannelAdmin.AdminID;
         pragma Warnings (Off, Argument_id_Ü);
         pragma Suppress (Validity_Check, Argument_id_Ü);
         Arg_CC_id_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Argument_id_Ü)'Unrestricted_Access);
         Arg_Any_id_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminID,
               Arg_CC_id_Ü'Unchecked_Access);
         Result_Ü : CosNotifyChannelAdmin.SupplierAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.SupplierAdmin.Helper.TC_SupplierAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            new_for_suppliers_Arg_Name_op_Ü,
            Arg_Any_op_Ü,
            CORBA.ARG_IN);
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            new_for_suppliers_Arg_Name_id_Ü,
            Arg_Any_id_Ü,
            CORBA.ARG_OUT);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         CosNotifyChannelAdmin.EventChannel.Impl.new_for_suppliers
           (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
              (Self.all)'Access,
            Argument_op_Ü,
            Argument_id_Ü,
            Result_Ü);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_new_for_suppliers;

      procedure Invoke_get_consumeradmin;

      ------------------------------
      -- Invoke_get_consumeradmin --
      ------------------------------

      procedure Invoke_get_consumeradmin is
         Argument_id_Ü : CosNotifyChannelAdmin.AdminID;
         pragma Warnings (Off, Argument_id_Ü);
         pragma Suppress (Validity_Check, Argument_id_Ü);
         Arg_CC_id_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Argument_id_Ü)'Unrestricted_Access);
         Arg_Any_id_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminID,
               Arg_CC_id_Ü'Unchecked_Access);
         Result_Ü : CosNotifyChannelAdmin.ConsumerAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.ConsumerAdmin.Helper.TC_ConsumerAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            get_consumeradmin_Arg_Name_id_Ü,
            Arg_Any_id_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyChannelAdmin.EventChannel.Impl.get_consumeradmin
                 (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_id_Ü);
         exception
            when E : CosNotifyChannelAdmin.AdminNotFound =>
               declare
                  Members : CosNotifyChannelAdmin.AdminNotFound_Members;
               begin
                  CosNotifyChannelAdmin.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyChannelAdmin.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_consumeradmin;

      procedure Invoke_get_supplieradmin;

      ------------------------------
      -- Invoke_get_supplieradmin --
      ------------------------------

      procedure Invoke_get_supplieradmin is
         Argument_id_Ü : CosNotifyChannelAdmin.AdminID;
         pragma Warnings (Off, Argument_id_Ü);
         pragma Suppress (Validity_Check, Argument_id_Ü);
         Arg_CC_id_Ü : aliased PolyORB.Any.Content'Class :=
           CORBA.Wrap
              (CORBA.Long
                 (Argument_id_Ü)'Unrestricted_Access);
         Arg_Any_id_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminID,
               Arg_CC_id_Ü'Unchecked_Access);
         Result_Ü : CosNotifyChannelAdmin.SupplierAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.SupplierAdmin.Helper.TC_SupplierAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            get_supplieradmin_Arg_Name_id_Ü,
            Arg_Any_id_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            Result_Ü :=
              CosNotifyChannelAdmin.EventChannel.Impl.get_supplieradmin
                 (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                    (Self.all)'Access,
                  Argument_id_Ü);
         exception
            when E : CosNotifyChannelAdmin.AdminNotFound =>
               declare
                  Members : CosNotifyChannelAdmin.AdminNotFound_Members;
               begin
                  CosNotifyChannelAdmin.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotifyChannelAdmin.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_supplieradmin;

      procedure Invoke_get_all_consumeradmins;

      -----------------------------------
      -- Invoke_get_all_consumeradmins --
      -----------------------------------

      procedure Invoke_get_all_consumeradmins is
         Result_Ü : CosNotifyChannelAdmin.AdminIDSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyChannelAdmin.Helper.Internals.Wrap
              (CosNotifyChannelAdmin.IDL_SEQUENCE_CosNotifyChannelAdmin_AdminID.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminIDSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_all_consumeradmins
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_all_consumeradmins;

      procedure Invoke_get_all_supplieradmins;

      -----------------------------------
      -- Invoke_get_all_supplieradmins --
      -----------------------------------

      procedure Invoke_get_all_supplieradmins is
         Result_Ü : CosNotifyChannelAdmin.AdminIDSeq;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotifyChannelAdmin.Helper.Internals.Wrap
              (CosNotifyChannelAdmin.IDL_SEQUENCE_CosNotifyChannelAdmin_AdminID.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotifyChannelAdmin.Helper.TC_AdminIDSeq,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_all_supplieradmins
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_all_supplieradmins;

      procedure Invoke_get_qos;

      --------------------
      -- Invoke_get_qos --
      --------------------

      procedure Invoke_get_qos is
         Result_Ü : CosNotification.QoSProperties;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_QoSProperties,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_qos
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_qos;

      procedure Invoke_set_qos;

      --------------------
      -- Invoke_set_qos --
      --------------------

      procedure Invoke_set_qos is
         Argument_qos_Ü : CosNotification.QoSProperties;
         pragma Warnings (Off, Argument_qos_Ü);
         pragma Suppress (Validity_Check, Argument_qos_Ü);
         Arg_CC_qos_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Argument_qos_Ü)'Unrestricted_Access);
         Arg_Any_qos_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_QoSProperties,
               Arg_CC_qos_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            set_qos_Arg_Name_qos_Ü,
            Arg_Any_qos_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            CosNotifyChannelAdmin.EventChannel.Impl.set_qos
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access,
               Argument_qos_Ü);
         exception
            when E : CosNotification.UnsupportedQoS =>
               declare
                  Members : CosNotification.UnsupportedQoS_Members;
               begin
                  CosNotification.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotification.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_set_qos;

      procedure Invoke_validate_qos;

      -------------------------
      -- Invoke_validate_qos --
      -------------------------

      procedure Invoke_validate_qos is
         Argument_required_qos_Ü : CosNotification.QoSProperties;
         pragma Warnings (Off, Argument_required_qos_Ü);
         pragma Suppress (Validity_Check, Argument_required_qos_Ü);
         Arg_CC_required_qos_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Argument_required_qos_Ü)'Unrestricted_Access);
         Arg_Any_required_qos_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_QoSProperties,
               Arg_CC_required_qos_Ü'Unchecked_Access);
         Argument_available_qos_Ü : CosNotification.NamedPropertyRangeSeq;
         pragma Warnings (Off, Argument_available_qos_Ü);
         pragma Suppress (Validity_Check, Argument_available_qos_Ü);
         Arg_CC_available_qos_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_NamedPropertyRange.Sequence
                 (Argument_available_qos_Ü)'Unrestricted_Access);
         Arg_Any_available_qos_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_NamedPropertyRangeSeq,
               Arg_CC_available_qos_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            validate_qos_Arg_Name_required_qos_Ü,
            Arg_Any_required_qos_Ü,
            CORBA.ARG_IN);
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            validate_qos_Arg_Name_available_qos_Ü,
            Arg_Any_available_qos_Ü,
            CORBA.ARG_OUT);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            CosNotifyChannelAdmin.EventChannel.Impl.validate_qos
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access,
               Argument_required_qos_Ü,
               Argument_available_qos_Ü);
         exception
            when E : CosNotification.UnsupportedQoS =>
               declare
                  Members : CosNotification.UnsupportedQoS_Members;
               begin
                  CosNotification.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotification.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_validate_qos;

      procedure Invoke_get_admin;

      ----------------------
      -- Invoke_get_admin --
      ----------------------

      procedure Invoke_get_admin is
         Result_Ü : CosNotification.AdminProperties;
         pragma Warnings (Off, Result_Ü);
         pragma Suppress (Validity_Check, Result_Ü);
         Arg_CC_Result_Ü_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Result_Ü)'Unrestricted_Access);
         Arg_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_AdminProperties,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.get_admin
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_get_admin;

      procedure Invoke_set_admin;

      ----------------------
      -- Invoke_set_admin --
      ----------------------

      procedure Invoke_set_admin is
         Argument_admin_Ü : CosNotification.AdminProperties;
         pragma Warnings (Off, Argument_admin_Ü);
         pragma Suppress (Validity_Check, Argument_admin_Ü);
         Arg_CC_admin_Ü : aliased PolyORB.Any.Content'Class :=
           CosNotification.Helper.Internals.Wrap
              (CosNotification.IDL_SEQUENCE_CosNotification_Property.Sequence
                 (Argument_admin_Ü)'Unrestricted_Access);
         Arg_Any_admin_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosNotification.Helper.TC_AdminProperties,
               Arg_CC_admin_Ü'Unchecked_Access);
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            set_admin_Arg_Name_admin_Ü,
            Arg_Any_admin_Ü,
            CORBA.ARG_IN);
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         begin
            --  Call Implementation
            CosNotifyChannelAdmin.EventChannel.Impl.set_admin
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access,
               Argument_admin_Ü);
         exception
            when E : CosNotification.UnsupportedAdmin =>
               declare
                  Members : CosNotification.UnsupportedAdmin_Members;
               begin
                  CosNotification.Get_Members
                    (E,
                     Members);
                  CORBA.ServerRequest.Set_Exception
                    (Request,
                     CosNotification.Helper.To_Any
                       (Members));
                  return;
               end;
         end;
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_set_admin;

      procedure Invoke_for_consumers;

      --------------------------
      -- Invoke_for_consumers --
      --------------------------

      procedure Invoke_for_consumers is
         Result_Ü : CosEventChannelAdmin.ConsumerAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosEventChannelAdmin.ConsumerAdmin.Helper.TC_ConsumerAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.for_consumers
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_for_consumers;

      procedure Invoke_for_suppliers;

      --------------------------
      -- Invoke_for_suppliers --
      --------------------------

      procedure Invoke_for_suppliers is
         Result_Ü : CosEventChannelAdmin.SupplierAdmin.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_Any_Result_Ü_Ü : constant CORBA.Any :=
           CORBA.Internals.Get_Wrapper_Any
              (CosEventChannelAdmin.SupplierAdmin.Helper.TC_SupplierAdmin,
               Arg_CC_Result_Ü_Ü'Unchecked_Access);
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         Result_Ü :=
           CosNotifyChannelAdmin.EventChannel.Impl.for_suppliers
              (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
                 (Self.all)'Access);
         --  Setting the result
         CORBA.ServerRequest.Set_Result
           (Request,
            Arg_Any_Result_Ü_Ü);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_for_suppliers;

      procedure Invoke_destroy;

      --------------------
      -- Invoke_destroy --
      --------------------

      procedure Invoke_destroy is
      begin
         --  Processing request
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         --  Call Implementation
         CosNotifyChannelAdmin.EventChannel.Impl.destroy
           (CosNotifyChannelAdmin.EventChannel.Impl.Object'Class
              (Self.all)'Access);
         CORBA.NVList.Internals.Clone_Out_Args
           (Argument_List_Ü);
      end Invoke_destroy;

      procedure Invoke_Uis_a;

      ------------------
      -- Invoke_Uis_a --
      ------------------

      procedure Invoke_Uis_a is
         Type_Id_Ü : CORBA.String;
         Arg_Name_Type_Id_Ü : constant CORBA.Identifier :=
           CORBA.To_CORBA_String
              ("Type_Id_Ü");
         Argument_Type_Id_Ü : constant CORBA.Any :=
           CORBA.To_Any
              (Type_Id_Ü);
         Result_Ü : CORBA.Boolean;
      begin
         CORBA.NVList.Add_Item
           (Argument_List_Ü,
            Arg_Name_Type_Id_Ü,
            Argument_Type_Id_Ü,
            CORBA.ARG_IN);
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         Type_Id_Ü :=
           CORBA.From_Any
              (Argument_Type_Id_Ü);
         Result_Ü :=
           Is_A
              (CORBA.To_Standard_String
                 (Type_Id_Ü));
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.To_Any
              (Result_Ü));
      end Invoke_Uis_a;

      procedure Invoke_Uinterface;

      -----------------------
      -- Invoke_Uinterface --
      -----------------------

      procedure Invoke_Uinterface is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.Object.Helper.To_Any
              (CORBA.Object.Ref
                 (PolyORB.CORBA_P.IR_Hooks.Get_Interface_Definition
                    (CORBA.To_CORBA_String
                       (Repository_Id)))));
      end Invoke_Uinterface;

      procedure Invoke_Udomain_managers;

      -----------------------------
      -- Invoke_Udomain_managers --
      -----------------------------

      procedure Invoke_Udomain_managers is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            PolyORB.CORBA_P.Domain_Management.Get_Domain_Managers
              (Self));
      end Invoke_Udomain_managers;

      procedure Invoke_Unon_existent;

      --------------------------
      -- Invoke_Unon_existent --
      --------------------------

      procedure Invoke_Unon_existent is
      begin
         CORBA.ServerRequest.Arguments
           (Request,
            Argument_List_Ü);
         CORBA.ServerRequest.Set_Result
           (Request,
            CORBA.To_Any
              (CORBA.Boolean'
                 (False)));
      end Invoke_Unon_existent;

      procedure Dispatch;

      --------------
      -- Dispatch --
      --------------

      procedure Dispatch is
      begin
         case Index_Ü is
            when 0 =>
               Invoke_Uget_MyFactory;
            when 1 =>
               Invoke_Uget_default_consumer_admin;
            when 2 =>
               Invoke_Uget_default_supplier_admin;
            when 3 =>
               Invoke_Uget_default_filter_factory;
            when 4 =>
               Invoke_new_for_consumers;
            when 5 =>
               Invoke_new_for_suppliers;
            when 6 =>
               Invoke_get_consumeradmin;
            when 7 =>
               Invoke_get_supplieradmin;
            when 8 =>
               Invoke_get_all_consumeradmins;
            when 9 =>
               Invoke_get_all_supplieradmins;
            when 10 =>
               Invoke_get_qos;
            when 11 =>
               Invoke_set_qos;
            when 12 =>
               Invoke_validate_qos;
            when 13 =>
               Invoke_get_admin;
            when 14 =>
               Invoke_set_admin;
            when 15 =>
               Invoke_for_consumers;
            when 16 =>
               Invoke_for_suppliers;
            when 17 =>
               Invoke_destroy;
            when 19 =>
               Invoke_Uinterface;
            when 20 =>
               Invoke_Udomain_managers;
            when 21
               | 22 =>
               Invoke_Unon_existent;
            when 18 =>
               Invoke_Uis_a;
            pragma Warnings (Off);
            when others =>
               raise Program_Error;
            pragma Warnings (On);

         end case;
      end Dispatch;

   begin
      CORBA.ORB.Create_List
        (0,
         Argument_List_Ü);
      Index_Ü :=
        CosNotifyChannelAdmin_EventChannel_Hash.Hash
           (Operation_Ü);
      Invoke_Name_Access :=
        Invoke_Db
           (Index_Ü);
      begin
         if (Operation_Ü
            = Invoke_Name_Access.all)
         then
            Dispatch;
         else
            CORBA.Raise_Bad_Operation
              (CORBA.Default_Sys_Member);
         end if;
      exception
         when E : others =>
            CORBA.ServerRequest.Set_Exception
              (Request,
               PolyORB.CORBA_P.Exceptions.System_Exception_To_Any
                 (E));
            PolyORB.Qos.Exception_Informations.Set_Exception_Information
              (Request.all,
               E);
      end;
   end Invoke;

   function Servant_Is_A
     (Obj : PortableServer.Servant)
     return Boolean;

   ------------------
   -- Servant_Is_A --
   ------------------

   function Servant_Is_A
     (Obj : PortableServer.Servant)
     return Boolean
   is
   begin
      return (Obj.all
         in CosNotifyChannelAdmin.EventChannel.Impl.Object'Class);
   end Servant_Is_A;

   -----------------------------
   -- Deferred_Initialization --
   -----------------------------

   procedure Deferred_Initialization is
   begin
      PortableServer.Internals.Register_Skeleton
        (CosNotifyChannelAdmin.EventChannel.Repository_Id,
         Servant_Is_A'Access,
         Is_A'Access,
         Invoke'Access);
      Register_Procedure
        ("_get_MyFactory");
      Register_Procedure
        ("_get_default_consumer_admin");
      Register_Procedure
        ("_get_default_supplier_admin");
      Register_Procedure
        ("_get_default_filter_factory");
      Register_Procedure
        ("new_for_consumers");
      Register_Procedure
        ("new_for_suppliers");
      Register_Procedure
        ("get_consumeradmin");
      Register_Procedure
        ("get_supplieradmin");
      Register_Procedure
        ("get_all_consumeradmins");
      Register_Procedure
        ("get_all_supplieradmins");
      Register_Procedure
        ("get_qos");
      Register_Procedure
        ("set_qos");
      Register_Procedure
        ("validate_qos");
      Register_Procedure
        ("get_admin");
      Register_Procedure
        ("set_admin");
      Register_Procedure
        ("for_consumers");
      Register_Procedure
        ("for_suppliers");
      Register_Procedure
        ("destroy");
      Register_Procedure
        ("_is_a");
      Register_Procedure
        ("_interface");
      Register_Procedure
        ("_domain_managers");
      Register_Procedure
        ("_non_existent");
      Register_Procedure
        ("_not_existent");
   end Deferred_Initialization;

begin
   declare
      use PolyORB.Utils.Strings;
      use PolyORB.Utils.Strings.Lists;
   begin
      PolyORB.Initialization.Register_Module
        (PolyORB.Initialization.Module_Info'
           (Name => +"CosNotifyChannelAdmin.EventChannel.Skel",
            Conflicts => PolyORB.Utils.Strings.Lists.Empty,
            Depends => PolyORB.Utils.Strings.Lists.Empty
               & "CosNotification.QoSAdmin.Skel?"
               & "CosNotification.AdminPropertiesAdmin.Skel?"
               & "CosEventChannelAdmin.EventChannel.Skel?",
            Provides => PolyORB.Utils.Strings.Lists.Empty,
            Implicit => False,
            Init => Deferred_Initialization'Access,
            Shutdown => null));
   end;
end CosNotifyChannelAdmin.EventChannel.Skel;
