Ñò
XÁÅGc           @   sï  d  d k  Z d  d k Z d  d k Z d  d k l Z d  d k l Z d  d k l Z d  d k l Z d  d k l Z d  d k	 l	 Z	 d  d k
 l Z d  d	 k l Z d  d k Z d
 d) d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d „  Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d d* d „  ƒ  YZ d „  Z d „  Z d „  Z d  „  Z d d! „ Z d" „  Z d# „  Z  d$ „  Z! d d% „ Z" d& „  Z# d' „  Z$ d( „  Z% d S(+   iÿÿÿÿN(   t   ClassExporter(   t   FunctionExporter(   t   EnumExporter(   t   HeaderExporter(   t   VarExporter(   t   CodeExporter(   t   FunctionWrapper(   t   makeidt   DeclarationInfoc           B   s;   e  Z d d  „ Z d „  Z d „  Z d d „ Z d „  Z RS(   c         C   sQ   h  |  _  h  |  _ | d  j	 o. t i | i  ƒ |  _  t i | i ƒ |  _ n d  S(   N(   t   _DeclarationInfo__infost   _DeclarationInfo__attributest   Nonet   copyt   deepcopy(   t   selft	   otherInfo(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   __init__   s
    		c         C   sF   | i  d ƒ o
 t ‚ n t ƒ  } | i d | ƒ |  i i | | ƒ S(   s   Used to access sub-infost   __t   name(   t
   startswitht   AttributeErrorR   t
   _AttributeR	   t
   setdefault(   R   R   t   default(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   __getitem__    s
    
	c         C   s   |  | S(   N(    (   R   R   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   __getattr__)   s    c         C   s/   | d  j o |  i i | ƒ S| |  i | <d  S(   N(   R   R
   t   get(   R   R   t   value(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   -   s    c         C   s4   | t  i  j o t  i  i | ƒ n t  i | _ d  S(   N(   t	   exporterst   appendt   current_interfacet   interface_file(   R   t   exporter(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   AddExporter6   s    N(   t   __name__t
   __module__R   R   R   R   R   R!   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR      s
   				t   FunctionInfoc           B   s   e  Z d d e d  „ Z RS(   c         C   sf   t  i |  | ƒ |  i d | ƒ |  i d | ƒ |  i d t ƒ | t |  ƒ | ƒ } |  i | ƒ d  S(   NR   t   includet   exclude(   R   R   R   t   Falset   InfoWrapperR!   (   R   R   R%   t   tailt   otherOptiont   exporter_classR    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   D   s    N(   R"   R#   R   R   R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR$   B   s   t	   ClassInfoc           B   s   e  Z d d e d  „ Z RS(   c         C   sf   t  i |  | ƒ |  i d | ƒ |  i d | ƒ |  i d t ƒ | t |  ƒ | ƒ } |  i | ƒ d  S(   NR   R%   R&   (   R   R   R   R'   R(   R!   (   R   R   R%   R)   R   R+   R    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   T   s    N(   R"   R#   R   R    R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR,   R   s   c         C   s2   |  i  d d ƒ }  |  g | } t d i | ƒ ƒ S(   Ns   ::t   _(   t   replaceR   t   join(   R   t	   type_listt   names(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   GenerateNameb   s    t   ClassTemplateInfoc           B   s,   e  Z e d  „ Z d d „ Z d d „ Z RS(   c         C   s:   t  i |  ƒ |  i d | ƒ |  i d | ƒ | |  _ d  S(   NR   R%   (   R   R   R   t   _exporter_class(   R   R   R%   R+   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   j   s    c         C   s•   | p t  |  i d ƒ | ƒ } n d i | ƒ } d |  i d ƒ | | f } | d | 7} | d | 7} t | |  i d ƒ | |  d |  i ƒ} | S(   NR   s   , s   typedef %s< %s > %s;
s   void __instantiate_%s()
s   { sizeof(%s); }

R%   R+   (   R2   R   R/   R,   R4   (   R   R0   t   renamet   typesR)   t   class_(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   Instantiater   s    c         C   s0   t  | t ƒ o | i ƒ  } n |  i | | ƒ S(   N(   t
   isinstancet   strt   splitR8   (   R   R6   R5   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   __call__€   s    N(   R"   R#   R    R   R   R8   R<   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR3   h   s   t   EnumInfoc           B   s   e  Z e d  „ Z RS(   c         C   sp   t  i |  ƒ |  i d | ƒ |  i d | ƒ |  i d t ƒ |  i d t ƒ | t |  ƒ ƒ } |  i | ƒ d  S(   NR   R%   R&   t   export_values(   R   R   R   R'   R(   R!   (   R   R   R%   R+   R    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   Š   s    (   R"   R#   R   R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR=   ˆ   s   t
   HeaderInfoc           B   s   e  Z e d  „ Z RS(   c         C   sM   t  i d ƒ t i |  ƒ |  i d | ƒ | t |  ƒ ƒ } |  i | ƒ d  S(   NsA   AllFromHeader is not working in all cases in the current version.R%   (   t   warningst   warnR   R   R   R(   R!   (   R   R%   R+   R    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   ™   s
    (   R"   R#   R   R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR?   —   s   t   VarInfoc           B   s   e  Z e d  „ Z RS(   c         C   sP   t  i |  ƒ |  i d | ƒ |  i d | ƒ | t |  ƒ ƒ } |  i | ƒ d  S(   NR   R%   (   R   R   R   R(   R!   (   R   R   R%   R+   R    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   ¦   s
    (   R"   R#   R   R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyRB   ¤   s   t   CodeInfoc           B   s   e  Z e d  „ Z RS(   c         C   sP   t  i |  ƒ |  i d | ƒ |  i d | ƒ | t |  ƒ ƒ } |  i | ƒ d  S(   Nt   codet   section(   R   R   R   R(   R!   (   R   RD   RE   R+   R    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   ³   s
    (   R"   R#   R   R   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyRC   ±   s   R(   c           B   s2   e  Z d  Z d „  Z d „  Z d „  Z d „  Z RS(   s%   Provides a nicer interface for a infoc         C   s   | |  i  d <d  S(   Nt   _info(   t   __dict__(   R   t   info(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   Á   s    c         C   s   t  |  i | ƒ S(   N(   R(   RF   (   R   R   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   Ä   s    c         C   s   |  i  i | ƒ S(   N(   RF   R   (   R   R   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR   Ç   s    c         C   s   |  i  i | | ƒ d  S(   N(   RF   R   (   R   R   R   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   __setattr__Ê   s    (   R"   R#   t   __doc__R   R   R   RI   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR(   ¾   s
   			c         C   s   |  i  d t ƒ d  S(   NR&   (   R   t   True(   RH   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR&   Ñ   s    c         C   s   |  i  d | ƒ d  S(   Nt   policy(   R   (   RH   RL   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt
   set_policyÔ   s    c         C   s   |  i  d | ƒ d  S(   NR5   (   R   (   RH   R   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR5   ×   s    c         C   s4   t  | t ƒ o t | ƒ } n |  i d | ƒ d  S(   Nt   wrapper(   R9   R:   R   R   (   RH   RN   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   set_wrapperÚ   s    c         C   s0   t  | t ƒ o | i ƒ  } n |  i | | ƒ S(   N(   R9   R:   R;   R8   (   t   templateR6   R5   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   instantiateß   s    c         C   s   |  i  d d ƒ d  S(   Nt	   smart_ptrs   boost::shared_ptr< %s >(   R   (   RH   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   use_shared_pträ   s    c         C   s   |  i  d d ƒ d  S(   NRR   s   std::auto_ptr< %s >(   R   (   RH   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   use_auto_ptrç   s    c         C   s1   d } t  | ƒ p
 t | ‚ |  i d | ƒ d  S(   Ns5   Expected a callable that accepts one string argument.t   holder(   t   callablet   AssertionErrorR   (   RH   t   functiont   msg(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyRU   ê   s    c         C   sP   |  i  d ƒ } | d  j o |  i  d | | f g ƒ n | i | | f ƒ d  S(   Nt	   __added__(   R   R   R   (   RH   R   R5   t   added(    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt
   add_methodï   s    c         C   sD   |  i  d ƒ } | d  j o |  i  d | g ƒ n | i | ƒ d  S(   Nt   __code__(   R   R   R   (   RH   RD   R[   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt
   class_code÷   s    c         C   s   |  i  d t ƒ d  S(   Nt   no_override(   R   RK   (   RH   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   finalþ   s    c         C   s   |  i  d t ƒ d  S(   NR>   (   R   RK   (   RH   (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyR>     s    (    (    (&   t   os.patht   osR   R   R    R   R   R   R   R   t   exporterutilsR   t   utilsR   R@   R   R$   R,   R2   R3   R=   R?   RB   RC   R(   R&   RM   R5   RO   R   RQ   RS   RT   RU   R\   R^   R`   R>   (    (    (    s+   /usr/lib/pymodules/python2.6/Pyste/infos.pyt   <module>   sB   ,	 									