26 #ifndef CASADI_SHELL_INTERFACE_HPP
27 #define CASADI_SHELL_INTERFACE_HPP
29 #include "casadi/core/importer_internal.hpp"
30 #include <casadi/solvers/casadi_importer_shell_export.h>
31 #include "casadi/core/plugin_interface.hpp"
74 void init(
const Dict& opts)
override;
83 std::string
class_name()
const override {
return "ShellCompiler";}
86 signal_t get_function(
const std::string& symname)
override;
89 std::string library()
const override;
'shell' plugin for Importer
std::string class_name() const override
Get type name.
std::string bin_name_
Temporary file.
std::string obj_name_
Temporary file.
static const Options options_
Options.
static ImporterInternal * creator(const std::string &name)
Create a new JIT function.
std::vector< std::string > extra_suffixes_
Extra files.
static const std::string meta_doc
A documentation string.
bool cleanup_
Cleanup temporary files when unloading.
const Options & get_options() const override
Options.
const char * plugin_name() const override
Get name of plugin.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
void(* signal_t)(void)
Function pointer types for the C API.
Options metadata for a class.