# This file was automatically generated by SWIG (http://www.swig.org). # Version 2.0.4 # # Do not make changes to this file unless you know what you are doing--modify # the SWIG interface file instead. from sys import version_info if version_info >= (2,6,0): def swig_import_helper(): from os.path import dirname import imp fp = None try: fp, pathname, description = imp.find_module('_InputCppRoot', [dirname(__file__)]) except ImportError: import _InputCppRoot return _InputCppRoot if fp is not None: try: _mod = imp.load_module('_InputCppRoot', fp, pathname, description) finally: fp.close() return _mod _InputCppRoot = swig_import_helper() del swig_import_helper else: import _InputCppRoot del version_info try: _swig_property = property except NameError: pass # Python < 2.2 doesn't have 'property'. def _swig_setattr_nondynamic(self,class_type,name,value,static=1): if (name == "thisown"): return self.this.own(value) if (name == "this"): if type(value).__name__ == 'SwigPyObject': self.__dict__[name] = value return method = class_type.__swig_setmethods__.get(name,None) if method: return method(self,value) if (not static): self.__dict__[name] = value else: raise AttributeError("You cannot add attributes to %s" % self) def _swig_setattr(self,class_type,name,value): return _swig_setattr_nondynamic(self,class_type,name,value,0) def _swig_getattr(self,class_type,name): if (name == "thisown"): return self.this.own() method = class_type.__swig_getmethods__.get(name,None) if method: return method(self) raise AttributeError(name) def _swig_repr(self): try: strthis = "proxy of " + self.this.__repr__() except: strthis = "" return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) try: _object = object _newclass = 1 except AttributeError: class _object : pass _newclass = 0 class IModule(_object): __swig_setmethods__ = {} __setattr__ = lambda self, name, value: _swig_setattr(self, IModule, name, value) __swig_getmethods__ = {} __getattr__ = lambda self, name: _swig_getattr(self, IModule, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _InputCppRoot.delete_IModule __del__ = lambda self : None; def birth(self, *args): return _InputCppRoot.IModule_birth(self, *args) def death(self): return _InputCppRoot.IModule_death(self) IModule_swigregister = _InputCppRoot.IModule_swigregister IModule_swigregister(IModule) class ModuleBase(IModule): __swig_setmethods__ = {} for _s in [IModule]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, ModuleBase, name, value) __swig_getmethods__ = {} for _s in [IModule]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, ModuleBase, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _InputCppRoot.delete_ModuleBase __del__ = lambda self : None; def birth(self, *args): return _InputCppRoot.ModuleBase_birth(self, *args) def death(self): return _InputCppRoot.ModuleBase_death(self) def get_classname(self): return _InputCppRoot.ModuleBase_get_classname(self) ModuleBase_swigregister = _InputCppRoot.ModuleBase_swigregister ModuleBase_swigregister(ModuleBase) class IInputstring(IModule): __swig_setmethods__ = {} for _s in [IModule]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, IInputstring, name, value) __swig_getmethods__ = {} for _s in [IModule]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, IInputstring, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _InputCppRoot.delete_IInputstring __del__ = lambda self : None; def emitter_cpp(self): return _InputCppRoot.IInputstring_emitter_cpp(self) IInputstring_swigregister = _InputCppRoot.IInputstring_swigregister IInputstring_swigregister(IInputstring) class InputBasestring(IInputstring,ModuleBase): __swig_setmethods__ = {} for _s in [IInputstring,ModuleBase]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, InputBasestring, name, value) __swig_getmethods__ = {} for _s in [IInputstring,ModuleBase]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, InputBasestring, name) def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined - class is abstract") __repr__ = _swig_repr __swig_destroy__ = _InputCppRoot.delete_InputBasestring __del__ = lambda self : None; def emitter_cpp(self): return _InputCppRoot.InputBasestring_emitter_cpp(self) def emitter(self): next_event = self.emitter_cpp() while next_event != "": yield next_event next_event = self.emitter_cpp() InputBasestring_swigregister = _InputCppRoot.InputBasestring_swigregister InputBasestring_swigregister(InputBasestring) def new_stringp(): return _InputCppRoot.new_stringp() new_stringp = _InputCppRoot.new_stringp def copy_stringp(*args): return _InputCppRoot.copy_stringp(*args) copy_stringp = _InputCppRoot.copy_stringp def delete_stringp(*args): return _InputCppRoot.delete_stringp(*args) delete_stringp = _InputCppRoot.delete_stringp def stringp_assign(*args): return _InputCppRoot.stringp_assign(*args) stringp_assign = _InputCppRoot.stringp_assign def stringp_value(*args): return _InputCppRoot.stringp_value(*args) stringp_value = _InputCppRoot.stringp_value class InputCppRoot(InputBasestring): __swig_setmethods__ = {} for _s in [InputBasestring]: __swig_setmethods__.update(getattr(_s,'__swig_setmethods__',{})) __setattr__ = lambda self, name, value: _swig_setattr(self, InputCppRoot, name, value) __swig_getmethods__ = {} for _s in [InputBasestring]: __swig_getmethods__.update(getattr(_s,'__swig_getmethods__',{})) __getattr__ = lambda self, name: _swig_getattr(self, InputCppRoot, name) __repr__ = _swig_repr def __init__(self, filename = ""): this = _InputCppRoot.new_InputCppRoot(filename) try: self.this.append(this) except: self.this = this __swig_destroy__ = _InputCppRoot.delete_InputCppRoot __del__ = lambda self : None; def birth(self, *args): return _InputCppRoot.InputCppRoot_birth(self, *args) def death(self): return _InputCppRoot.InputCppRoot_death(self) InputCppRoot_swigregister = _InputCppRoot.InputCppRoot_swigregister InputCppRoot_swigregister(InputCppRoot) # This file is compatible with both classic and new-style classes.