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"
53 class ShellCompiler :
public ImporterInternal {
57 explicit ShellCompiler(
const std::string& name);
60 static ImporterInternal* creator(
const std::string& name) {
61 return new ShellCompiler(name);
65 ~ShellCompiler()
override;
69 static const Options options_;
70 const Options& get_options()
const override {
return options_;}
74 void init(
const Dict& opts)
override;
77 static const std::string meta_doc;
80 const char* plugin_name()
const override {
return "shell";}
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;
92 std::string base_name_;
95 std::string bin_name_;
98 std::string obj_name_;
101 std::vector<std::string> extra_suffixes_;
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.