a
    ¨ˆcÕ  ã                   @   s$   d Z ddlmZ G dd„ deƒZdS )z) The base class for all state factories. é    )ÚHasPrivateTraitsc                   @   s   e Zd ZdZdd„ ZdS )ÚStateFactoryz¼The base class for all state factories.

    A state factory accepts an object and returns some data representing the
    object that is suitable for storing in a particular context.

    c                 C   s   t ‚dS )z¯Returns the state of an object for binding.

        Returns None if the factory cannot create the state (ie. it does not
        recognise the object passed to it).

        N)ÚNotImplementedError)ÚselfÚobjÚnameÚcontext© r	   ú`/home/yuhw/wc/wire-cell-python/wcpy/lib/python3.9/site-packages/apptools/naming/state_factory.pyÚget_state_to_bind   s    zStateFactory.get_state_to_bindN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   r	   r	   r
   r      s   r   N)r   Z
traits.apir   r   r	   r	   r	   r
   Ú<module>
   s   