Ë
    
Þ~f  ã                   óÈ   — d Z ddlmZmZmZ ddlZddlZddlZddlZddl	m
Z
 	 ddlmZ ddlmZ ddlmZ ddlmZ da G d	„ d
ej*                  «      Zy# e$ r  e
«       ‚w xY w)zXwslink is a module that extends any
wslink related classes for the purposes of vtkWeb.

é    )Úabsolute_importÚdivisionÚprint_functionN)ÚWebDependencyMissingError)Ú	websocket)Úregister)Ú	protocols)ÚvtkWebApplicationc                   ó4   — e Zd ZdZd„ Zd„ Zd„ Zd„ Zd„ Zd„ Z	y)	ÚServerProtocolaN  
    Defines the core server protocol for vtkWeb. Adds support to
    marshall/unmarshall RPC callbacks that involve ServerManager proxies as
    arguments or return values.

    Applications typically don't use this class directly, but instead
    sub-class it and call self.registerVtkWebProtocol() with useful vtkWebProtocols.
    c                 ó¬   — t        j                  d«       | j                  d| j                  «       «       t        j
                  j                  | «       y )NzCreating SPÚapp)ÚloggingÚinfoÚsetSharedObjectÚinitApplicationr   r   Ú__init__©Úselfs    ú5lib/python3.12/site-packages/vtkmodules/web/wslink.pyr   zServerProtocol.__init__*   s;   € Ü�‰�]Ô#Ø×Ñ˜U D×$8Ñ$8Ó$:Ô;Ü× Ñ ×)Ñ)¨$Õ/ó    c                 ó.   — t         s
t        «       a t         S )z{
        Let subclass optionally initialize a custom application in lieu
        of the default vtkWebApplication.
        )Úapplicationr
   r   s    r   r   zServerProtocol.initApplication/   s   € õ Ü+Ó-ˆKÜÐr   c                 ó(   — | j                  d|«       y ©Nr   )r   )r   r   s     r   ÚsetApplicationzServerProtocol.setApplication9   s   € Ø×Ñ˜U KÕ0r   c                 ó$   — | j                  d«      S r   )ÚgetSharedObjectr   s    r   ÚgetApplicationzServerProtocol.getApplication<   s   € Ø×#Ñ# EÓ*Ð*r   c                 ó&   — | j                  |«       y ©N)ÚregisterLinkProtocol)r   Úprotocols     r   ÚregisterVtkWebProtocolz%ServerProtocol.registerVtkWebProtocol?   s   € Ø×!Ñ! (Õ+r   c                 ó"   — | j                  «       S r!   )ÚgetLinkProtocolsr   s    r   ÚgetVtkWebProtocolsz!ServerProtocol.getVtkWebProtocolsB   s   € Ø×$Ñ$Ó&Ð&r   N)
Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   r   r$   r'   © r   r   r   r       s%   „ ñò0ò
ò1ò+ò,ó'r   r   )r+   Ú
__future__r   r   r   ÚjsonÚbase64r   ÚtimeÚvtkmodules.web.errorsr   Úwslinkr   r   Ú	exportRpcÚImportErrorÚvtkmodules.webr	   Úvtkmodules.vtkWebCorer
   r   r   r,   r   r   Ú<module>r7      sd   ðñ÷
 AÑ @÷ #× "å ;ð&Ý Ý,õ %Ý 3ð €ô#'�Y×-Ñ-õ #'øð! ò &Ù
#Ó
%Ð%ð&ús   ¤A ÁA!