Changeset 16 for 05/bugfix/sgfpars.py

Show
Ignore:
Timestamp:
02/07/04 15:51:34 (5 years ago)
Author:
ug
Message:

Changed B3 binding for Mac OS X
New SWIG version

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • 05/bugfix/sgfpars.py

    r1 r16  
    3434    __getattr__ = lambda self, name: _swig_getattr(self, SGFError, name) 
    3535    def __init__(self,*args): 
    36         self.this = apply(_sgfpars.new_SGFError,args) 
    37         self.thisown = 1 
     36        _swig_setattr(self, SGFError, 'this', apply(_sgfpars.new_SGFError,args)) 
     37        _swig_setattr(self, SGFError, 'thisown', 1) 
    3838    def __del__(self, destroy= _sgfpars.delete_SGFError): 
    3939        try: 
     
    4545class SGFErrorPtr(SGFError): 
    4646    def __init__(self,this): 
    47         self.this = this 
    48         if not hasattr(self,"thisown"): self.thisown = 0 
    49         self.__class__ = SGFError 
     47        _swig_setattr(self, SGFError, 'this', this) 
     48        if not hasattr(self,"thisown"): _swig_setattr(self, SGFError, 'thisown', 0) 
     49        _swig_setattr(self, SGFError,self.__class__,SGFError) 
    5050_sgfpars.SGFError_swigregister(SGFErrorPtr) 
    5151 
     
    8888    if _newclass:posyD = property(_sgfpars.Node_posyD_get,_sgfpars.Node_posyD_set) 
    8989    def __init__(self,*args): 
    90         self.this = apply(_sgfpars.new_Node,args) 
    91         self.thisown = 1 
     90        _swig_setattr(self, Node, 'this', apply(_sgfpars.new_Node,args)) 
     91        _swig_setattr(self, Node, 'thisown', 1) 
    9292    def __del__(self, destroy= _sgfpars.delete_Node): 
    9393        try: 
     
    102102class NodePtr(Node): 
    103103    def __init__(self,this): 
    104         self.this = this 
    105         if not hasattr(self,"thisown"): self.thisown = 0 
    106         self.__class__ = Node 
     104        _swig_setattr(self, Node, 'this', this) 
     105        if not hasattr(self,"thisown"): _swig_setattr(self, Node, 'thisown', 0) 
     106        _swig_setattr(self, Node,self.__class__,Node) 
    107107_sgfpars.Node_swigregister(NodePtr) 
    108108cvar = _sgfpars.cvar 
     
    114114    __getattr__ = lambda self, name: _swig_getattr(self, Cursor, name) 
    115115    def __init__(self,*args): 
    116         self.this = apply(_sgfpars.new_Cursor,args) 
    117         self.thisown = 1 
     116        _swig_setattr(self, Cursor, 'this', apply(_sgfpars.new_Cursor,args)) 
     117        _swig_setattr(self, Cursor, 'thisown', 1) 
    118118    def __del__(self, destroy= _sgfpars.delete_Cursor): 
    119119        try: 
     
    165165class CursorPtr(Cursor): 
    166166    def __init__(self,this): 
    167         self.this = this 
    168         if not hasattr(self,"thisown"): self.thisown = 0 
    169         self.__class__ = Cursor 
     167        _swig_setattr(self, Cursor, 'this', this) 
     168        if not hasattr(self,"thisown"): _swig_setattr(self, Cursor, 'thisown', 0) 
     169        _swig_setattr(self, Cursor,self.__class__,Cursor) 
    170170_sgfpars.Cursor_swigregister(CursorPtr) 
    171171 
     
    182182    if _newclass:prev = property(_sgfpars.intN_prev_get,_sgfpars.intN_prev_set) 
    183183    def __init__(self,*args): 
    184         self.this = apply(_sgfpars.new_intN,args) 
    185         self.thisown = 1 
     184        _swig_setattr(self, intN, 'this', apply(_sgfpars.new_intN,args)) 
     185        _swig_setattr(self, intN, 'thisown', 1) 
    186186    def __del__(self, destroy= _sgfpars.delete_intN): 
    187187        try: 
     
    193193class intNPtr(intN): 
    194194    def __init__(self,this): 
    195         self.this = this 
    196         if not hasattr(self,"thisown"): self.thisown = 0 
    197         self.__class__ = intN 
     195        _swig_setattr(self, intN, 'this', this) 
     196        if not hasattr(self,"thisown"): _swig_setattr(self, intN, 'thisown', 0) 
     197        _swig_setattr(self, intN,self.__class__,intN) 
    198198_sgfpars.intN_swigregister(intNPtr) 
    199199 
     
    207207    if _newclass:root = property(_sgfpars.IntStack_root_get,_sgfpars.IntStack_root_set) 
    208208    def __init__(self,*args): 
    209         self.this = apply(_sgfpars.new_IntStack,args) 
    210         self.thisown = 1 
     209        _swig_setattr(self, IntStack, 'this', apply(_sgfpars.new_IntStack,args)) 
     210        _swig_setattr(self, IntStack, 'thisown', 1) 
    211211    def push(*args): return apply(_sgfpars.IntStack_push,args) 
    212212    def pop(*args): return apply(_sgfpars.IntStack_pop,args) 
     
    222222class IntStackPtr(IntStack): 
    223223    def __init__(self,this): 
    224         self.this = this 
    225         if not hasattr(self,"thisown"): self.thisown = 0 
    226         self.__class__ = IntStack 
     224        _swig_setattr(self, IntStack, 'this', this) 
     225        if not hasattr(self,"thisown"): _swig_setattr(self, IntStack, 'thisown', 0) 
     226        _swig_setattr(self, IntStack,self.__class__,IntStack) 
    227227_sgfpars.IntStack_swigregister(IntStackPtr) 
    228228 
     
    239239    if _newclass:prev = property(_sgfpars.nodeN_prev_get,_sgfpars.nodeN_prev_set) 
    240240    def __init__(self,*args): 
    241         self.this = apply(_sgfpars.new_nodeN,args) 
    242         self.thisown = 1 
     241        _swig_setattr(self, nodeN, 'this', apply(_sgfpars.new_nodeN,args)) 
     242        _swig_setattr(self, nodeN, 'thisown', 1) 
    243243    def __del__(self, destroy= _sgfpars.delete_nodeN): 
    244244        try: 
     
    250250class nodeNPtr(nodeN): 
    251251    def __init__(self,this): 
    252         self.this = this 
    253         if not hasattr(self,"thisown"): self.thisown = 0 
    254         self.__class__ = nodeN 
     252        _swig_setattr(self, nodeN, 'this', this) 
     253        if not hasattr(self,"thisown"): _swig_setattr(self, nodeN, 'thisown', 0) 
     254        _swig_setattr(self, nodeN,self.__class__,nodeN) 
    255255_sgfpars.nodeN_swigregister(nodeNPtr) 
    256256 
     
    264264    if _newclass:root = property(_sgfpars.NodeStack_root_get,_sgfpars.NodeStack_root_set) 
    265265    def __init__(self,*args): 
    266         self.this = apply(_sgfpars.new_NodeStack,args) 
    267         self.thisown = 1 
     266        _swig_setattr(self, NodeStack, 'this', apply(_sgfpars.new_NodeStack,args)) 
     267        _swig_setattr(self, NodeStack, 'thisown', 1) 
    268268    def push(*args): return apply(_sgfpars.NodeStack_push,args) 
    269269    def pop(*args): return apply(_sgfpars.NodeStack_pop,args) 
     
    279279class NodeStackPtr(NodeStack): 
    280280    def __init__(self,this): 
    281         self.this = this 
    282         if not hasattr(self,"thisown"): self.thisown = 0 
    283         self.__class__ = NodeStack 
     281        _swig_setattr(self, NodeStack, 'this', this) 
     282        if not hasattr(self,"thisown"): _swig_setattr(self, NodeStack, 'thisown', 0) 
     283        _swig_setattr(self, NodeStack,self.__class__,NodeStack) 
    284284_sgfpars.NodeStack_swigregister(NodeStackPtr) 
    285285