ó 6šâWc@sïddlZddlZddlZddlmZddlmZddlmZddlmZddlmZddl m Z ddl m Z dd l m Z ddlZd d)d „ƒYZd efd „ƒYZdefd„ƒYZd„Zdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdefd„ƒYZdd*d„ƒYZd„Zd„Zd„Zd „Zdd!„Zd"„Zd#„Z d$„Z!dd%„Z"d&„Z#d'„Z$d(„Z%dS(+iÿÿÿÿN(t ClassExporter(tFunctionExporter(t EnumExporter(tHeaderExporter(t VarExporter(t CodeExporter(tFunctionWrapper(tmakeidtDeclarationInfocBs;eZdd„Zd„Zd„Zdd„Zd„ZRS(cCsOi|_i|_|dk rKtj|jƒ|_tj|jƒ|_ndS(N(t_DeclarationInfo__infost_DeclarationInfo__attributestNonetcopytdeepcopy(tselft otherInfo((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt__init__s    cCsD|jdƒrt‚ntƒ}|jd|ƒ|jj||ƒS(sUsed to access sub-infost__tname(t startswithtAttributeErrorRt _AttributeR t setdefault(RRtdefault((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt __getitem__ s   cCs||S(N((RR((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt __getattr__)scCs-|dkr|jj|ƒS||j| %s; svoid __instantiate_%s() s{ sizeof(%s); } R%R+(R2RR/R,R4(RR0trenamettypesR)tclass_((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt Instantiaters cCs.t|tƒr|jƒ}n|j||ƒS(N(t isinstancetstrtsplitR8(RR6R5((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt__call__€sN(R"R#RRR R8R<(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR3hs  tEnumInfocBseZed„ZRS(cCsptj|ƒ|jd|ƒ|jd|ƒ|jdtƒ|jdtƒ|t|ƒƒ}|j|ƒdS(NRR%R&t export_values(RRRR'R(R!(RRR%R+R ((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyRŠs (R"R#RR(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR=ˆst HeaderInfocBseZed„ZRS(cCsMtjdƒtj|ƒ|jd|ƒ|t|ƒƒ}|j|ƒdS(NsAAllFromHeader is not working in all cases in the current version.R%(twarningstwarnRRRR(R!(RR%R+R ((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR™s   (R"R#RR(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR?—stVarInfocBseZed„ZRS(cCsPtj|ƒ|jd|ƒ|jd|ƒ|t|ƒƒ}|j|ƒdS(NRR%(RRRR(R!(RRR%R+R ((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR¦s  (R"R#RR(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyRB¤stCodeInfocBseZed„ZRS(cCsPtj|ƒ|jd|ƒ|jd|ƒ|t|ƒƒ}|j|ƒdS(Ntcodetsection(RRRR(R!(RRDRER+R ((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR³s  (R"R#RR(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyRC±sR(cBs2eZdZd„Zd„Zd„Zd„ZRS(s%Provides a nicer interface for a infocCs||jd(R(RH((s//usr/lib/python2.7/dist-packages/Pyste/infos.pytuse_shared_pträscCs|jddƒdS(NRRsstd::auto_ptr< %s >(R(RH((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt use_auto_ptrçscCs2d}t|ƒst|ƒ‚|jd|ƒdS(Ns5Expected a callable that accepts one string argument.tholder(tcallabletAssertionErrorR(RHtfunctiontmsg((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyRUêscCsN|jdƒ}|dkr7|jd||fgƒn|j||fƒdS(Nt __added__(RR R(RHRR5tadded((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt add_methodïs cCsB|jdƒ}|dkr1|jd|gƒn |j|ƒdS(Nt__code__(RR R(RHRDR[((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyt class_code÷s cCs|jdtƒdS(Nt no_override(RRK(RH((s//usr/lib/python2.7/dist-packages/Pyste/infos.pytfinalþscCs|jdtƒdS(NR>(RRK(RH((s//usr/lib/python2.7/dist-packages/Pyste/infos.pyR>s(((&tos.pathtosR RRRRRRRt exporterutilsRtutilsRR@RR$R,R2R3R=R?RBRCR(R&RMR5ROR RQRSRTRUR\R^R`R>(((s//usr/lib/python2.7/dist-packages/Pyste/infos.pytsB    ,