Import handlers: Difference between revisions
Jump to navigation
Jump to search
Restored page from Google Cache, uploaded by John Pye |
add code link |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
When you write an <tt>IMPORT</tt> statement in your model, the 'import handler' mechanism is invoked. | When you write an <tt>IMPORT</tt> statement in your model, the 'import handler' mechanism is invoked. | ||
This will search your <tt>ASCENDLIBRARY</tt> path looking for files with recognised extensions that can be loaded to provide additional [[External_libraries| | This will search your <tt>ASCENDLIBRARY</tt> path looking for files with recognised extensions that can be loaded to provide additional [[External_libraries|external library]] ASCEND functionality, such as blackbox external functions, external methods, [[External_Integrators|external Integrators]] and [[External_Solvers|external Solvers]]. | ||
The import handler mechanism allows various types of files to provide these things. The [[ExtPy]] mechanism has already been used to allow Python scripts to provide external method functionality. | |||
See also {{src|ascend/compiler/importhandler.h}} | |||
[[Category:Development]] | |||
Latest revision as of 00:49, 18 August 2015
When you write an IMPORT statement in your model, the 'import handler' mechanism is invoked.
This will search your ASCENDLIBRARY path looking for files with recognised extensions that can be loaded to provide additional external library ASCEND functionality, such as blackbox external functions, external methods, external Integrators and external Solvers.
The import handler mechanism allows various types of files to provide these things. The ExtPy mechanism has already been used to allow Python scripts to provide external method functionality.
See also ascend/compiler/importhandler.h