Changeset 16 for 05/bugfix/sgfpars.py
- Timestamp:
- 02/07/04 15:51:34 (5 years ago)
- Files:
-
- 1 modified
-
05/bugfix/sgfpars.py (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
05/bugfix/sgfpars.py
r1 r16 34 34 __getattr__ = lambda self, name: _swig_getattr(self, SGFError, name) 35 35 def __init__(self,*args): 36 self.this = apply(_sgfpars.new_SGFError,args)37 self.thisown = 136 _swig_setattr(self, SGFError, 'this', apply(_sgfpars.new_SGFError,args)) 37 _swig_setattr(self, SGFError, 'thisown', 1) 38 38 def __del__(self, destroy= _sgfpars.delete_SGFError): 39 39 try: … … 45 45 class SGFErrorPtr(SGFError): 46 46 def __init__(self,this): 47 self.this = this48 if not hasattr(self,"thisown"): self.thisown = 049 self.__class__ = SGFError47 _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) 50 50 _sgfpars.SGFError_swigregister(SGFErrorPtr) 51 51 … … 88 88 if _newclass:posyD = property(_sgfpars.Node_posyD_get,_sgfpars.Node_posyD_set) 89 89 def __init__(self,*args): 90 self.this = apply(_sgfpars.new_Node,args)91 self.thisown = 190 _swig_setattr(self, Node, 'this', apply(_sgfpars.new_Node,args)) 91 _swig_setattr(self, Node, 'thisown', 1) 92 92 def __del__(self, destroy= _sgfpars.delete_Node): 93 93 try: … … 102 102 class NodePtr(Node): 103 103 def __init__(self,this): 104 self.this = this105 if not hasattr(self,"thisown"): self.thisown = 0106 self.__class__ = Node104 _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) 107 107 _sgfpars.Node_swigregister(NodePtr) 108 108 cvar = _sgfpars.cvar … … 114 114 __getattr__ = lambda self, name: _swig_getattr(self, Cursor, name) 115 115 def __init__(self,*args): 116 self.this = apply(_sgfpars.new_Cursor,args)117 self.thisown = 1116 _swig_setattr(self, Cursor, 'this', apply(_sgfpars.new_Cursor,args)) 117 _swig_setattr(self, Cursor, 'thisown', 1) 118 118 def __del__(self, destroy= _sgfpars.delete_Cursor): 119 119 try: … … 165 165 class CursorPtr(Cursor): 166 166 def __init__(self,this): 167 self.this = this168 if not hasattr(self,"thisown"): self.thisown = 0169 self.__class__ = Cursor167 _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) 170 170 _sgfpars.Cursor_swigregister(CursorPtr) 171 171 … … 182 182 if _newclass:prev = property(_sgfpars.intN_prev_get,_sgfpars.intN_prev_set) 183 183 def __init__(self,*args): 184 self.this = apply(_sgfpars.new_intN,args)185 self.thisown = 1184 _swig_setattr(self, intN, 'this', apply(_sgfpars.new_intN,args)) 185 _swig_setattr(self, intN, 'thisown', 1) 186 186 def __del__(self, destroy= _sgfpars.delete_intN): 187 187 try: … … 193 193 class intNPtr(intN): 194 194 def __init__(self,this): 195 self.this = this196 if not hasattr(self,"thisown"): self.thisown = 0197 self.__class__ = intN195 _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) 198 198 _sgfpars.intN_swigregister(intNPtr) 199 199 … … 207 207 if _newclass:root = property(_sgfpars.IntStack_root_get,_sgfpars.IntStack_root_set) 208 208 def __init__(self,*args): 209 self.this = apply(_sgfpars.new_IntStack,args)210 self.thisown = 1209 _swig_setattr(self, IntStack, 'this', apply(_sgfpars.new_IntStack,args)) 210 _swig_setattr(self, IntStack, 'thisown', 1) 211 211 def push(*args): return apply(_sgfpars.IntStack_push,args) 212 212 def pop(*args): return apply(_sgfpars.IntStack_pop,args) … … 222 222 class IntStackPtr(IntStack): 223 223 def __init__(self,this): 224 self.this = this225 if not hasattr(self,"thisown"): self.thisown = 0226 self.__class__ = IntStack224 _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) 227 227 _sgfpars.IntStack_swigregister(IntStackPtr) 228 228 … … 239 239 if _newclass:prev = property(_sgfpars.nodeN_prev_get,_sgfpars.nodeN_prev_set) 240 240 def __init__(self,*args): 241 self.this = apply(_sgfpars.new_nodeN,args)242 self.thisown = 1241 _swig_setattr(self, nodeN, 'this', apply(_sgfpars.new_nodeN,args)) 242 _swig_setattr(self, nodeN, 'thisown', 1) 243 243 def __del__(self, destroy= _sgfpars.delete_nodeN): 244 244 try: … … 250 250 class nodeNPtr(nodeN): 251 251 def __init__(self,this): 252 self.this = this253 if not hasattr(self,"thisown"): self.thisown = 0254 self.__class__ = nodeN252 _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) 255 255 _sgfpars.nodeN_swigregister(nodeNPtr) 256 256 … … 264 264 if _newclass:root = property(_sgfpars.NodeStack_root_get,_sgfpars.NodeStack_root_set) 265 265 def __init__(self,*args): 266 self.this = apply(_sgfpars.new_NodeStack,args)267 self.thisown = 1266 _swig_setattr(self, NodeStack, 'this', apply(_sgfpars.new_NodeStack,args)) 267 _swig_setattr(self, NodeStack, 'thisown', 1) 268 268 def push(*args): return apply(_sgfpars.NodeStack_push,args) 269 269 def pop(*args): return apply(_sgfpars.NodeStack_pop,args) … … 279 279 class NodeStackPtr(NodeStack): 280 280 def __init__(self,this): 281 self.this = this282 if not hasattr(self,"thisown"): self.thisown = 0283 self.__class__ = NodeStack281 _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) 284 284 _sgfpars.NodeStack_swigregister(NodeStackPtr) 285 285
