cfunc.set_name(self, name) def get_name(self): return cfunc.get_name(self) name = property(get_name, set_name) # 2. Creating a wrapper object around the libecl library. cwrapper = CWrapper(ECL_LIB) cwrapper.registerType("ecl_region", EclRegion) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("ecl_region") cfunc.alloc = cwrapper.prototype( "c_void_p ecl_region_alloc( ecl_grid , bool )") cfunc.free = cwrapper.prototype("void ecl_region_free( ecl_region )") cfunc.reset = cwrapper.prototype("void ecl_region_reset( ecl_region )") cfunc.select_all = cwrapper.prototype( "void ecl_region_select_all( ecl_region )") cfunc.deselect_all = cwrapper.prototype( "void ecl_region_deselect_all( ecl_region )") cfunc.select_equal = cwrapper.prototype( "void ecl_region_select_equal( ecl_region , ecl_kw , int )") cfunc.deselect_equal = cwrapper.prototype( "void ecl_region_deselect_equal( ecl_region , ecl_kw , int)") cfunc.select_less = cwrapper.prototype( "void ecl_region_select_smaller( ecl_region , ecl_kw , float )")
#----------------------------------------------------------------- def link_content(self, directory): cfunc.link_directory_content(self, directory) def link_path(self, path): cfunc.link_path(self, path) cwrapper = CWrapper(UTIL_LIB) cwrapper.registerType("latex", LaTeX) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("latex") cfunc.alloc = cwrapper.prototype("c_void_p latex_alloc( char* , bool )") cfunc.free = cwrapper.prototype("void latex_free( latex )") cfunc.compile = cwrapper.prototype( "bool latex_compile(latex , bool , bool , bool)") cfunc.get_runpath = cwrapper.prototype("char* latex_get_runpath( latex )") cfunc.get_target = cwrapper.prototype( "char* latex_get_target_file( latex )") cfunc.set_target = cwrapper.prototype( "void latex_set_target_file( latex , char* )") cfunc.set_timeout = cwrapper.prototype( "void latex_set_timeout( latex , int )") cfunc.get_timeout = cwrapper.prototype("int latex_get_timeout( latex )") cfunc.compile_in_place = cwrapper.prototype( "bool latex_compile_in_place( latex )") cfunc.link_directory_content = cwrapper.prototype( "void latex_link_directory_content( latex , char*)")
def set_timeout(self, timeout): cfunc.set_timeout(self, timeout) timeout = property(get_timeout, set_timeout) # ----------------------------------------------------------------- def link_content(self, directory): cfunc.link_directory_content(self, directory) def link_path(self, path): cfunc.link_path(self, path) cwrapper = CWrapper(UTIL_LIB) cwrapper.registerType("latex", LaTeX) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("latex") cfunc.alloc = cwrapper.prototype("c_void_p latex_alloc( char* , bool )") cfunc.free = cwrapper.prototype("void latex_free( latex )") cfunc.compile = cwrapper.prototype("bool latex_compile(latex , bool , bool , bool)") cfunc.get_runpath = cwrapper.prototype("char* latex_get_runpath( latex )") cfunc.get_target = cwrapper.prototype("char* latex_get_target_file( latex )") cfunc.set_target = cwrapper.prototype("void latex_set_target_file( latex , char* )") cfunc.set_timeout = cwrapper.prototype("void latex_set_timeout( latex , int )") cfunc.get_timeout = cwrapper.prototype("int latex_get_timeout( latex )") cfunc.compile_in_place = cwrapper.prototype("bool latex_compile_in_place( latex )") cfunc.link_directory_content = cwrapper.prototype("void latex_link_directory_content( latex , char*)") cfunc.link_path = cwrapper.prototype("void latex_link_path( latex , char*)")
cfunc.set_name( self , name ) def get_name( self ): return cfunc.get_name( self ) name = property( get_name , set_name ) # 2. Creating a wrapper object around the libecl library. cwrapper = CWrapper(ECL_LIB) cwrapper.registerType( "ecl_region" , EclRegion ) # 3. Installing the c-functions used to manipulate. cfunc = CWrapperNameSpace("ecl_region") cfunc.alloc = cwrapper.prototype("c_void_p ecl_region_alloc( ecl_grid , bool )") cfunc.free = cwrapper.prototype("void ecl_region_free( ecl_region )") cfunc.reset = cwrapper.prototype("void ecl_region_reset( ecl_region )") cfunc.select_all = cwrapper.prototype("void ecl_region_select_all( ecl_region )") cfunc.deselect_all = cwrapper.prototype("void ecl_region_deselect_all( ecl_region )") cfunc.select_equal = cwrapper.prototype("void ecl_region_select_equal( ecl_region , ecl_kw , int )") cfunc.deselect_equal = cwrapper.prototype("void ecl_region_deselect_equal( ecl_region , ecl_kw , int)") cfunc.select_less = cwrapper.prototype("void ecl_region_select_smaller( ecl_region , ecl_kw , float )") cfunc.deselect_less = cwrapper.prototype("void ecl_region_deselect_smaller( ecl_region , ecl_kw , float )") cfunc.select_more = cwrapper.prototype("void ecl_region_select_larger( ecl_region , ecl_kw , float )") cfunc.deselect_more = cwrapper.prototype("void ecl_region_deselect_larger( ecl_region , ecl_kw , float )")