'ghc' plugin for Filesystem More...
#include <ghc.hpp>
Public Types | |
typedef bool(* | IsDirectory) (const std::string &path) |
typedef bool(* | CreateDirectories) (const std::string &path) |
typedef bool(* | Remove) (const std::string &path) |
typedef casadi_int(* | RemoveAll) (const std::string &path) |
typedef std::string(* | Filename) (const std::string &path) |
typedef bool(* | HasParentPath) (const std::string &path) |
typedef std::string(* | ParentPath) (const std::string &path) |
typedef std::vector< std::string >(* | IterateDirectoryNames) (const std::string &path) |
typedef std::string(* | Absolute) (const std::string &path) |
typedef Filesystem *(* | Creator) () |
typedef int(* | RegFcn) (Plugin *plugin) |
Public Member Functions | |
virtual const char * | plugin_name () const=0 |
void | serialize_type (SerializingStream &s) const |
Serialize type information. More... | |
Static Public Member Functions | |
static void | assert_enabled () |
static bool | is_directory (const std::string &path) |
static bool | remove (const std::string &path) |
static casadi_int | remove_all (const std::string &path) |
static std::string | filename (const std::string &path) |
static bool | is_enabled () |
static bool | has_parent_path (const std::string &path) |
static std::string | parent_path (const std::string &path) |
static std::string | absolute (const std::string &path) |
static bool | ensure_directory_exists (const std::string &path) |
static bool | create_directories (const std::string &path) |
static std::vector< std::string > | iterate_directory_names (const std::string &path) |
static void | open (std::ofstream &, const std::string &path, std::ios_base::openmode mode=std::ios_base::out) |
static std::ofstream * | ofstream_ptr (const std::string &path, std::ios_base::openmode mode=std::ios_base::out) |
static bool | has_plugin (const std::string &pname, bool verbose=false) |
Check if a plugin is available or can be loaded. More... | |
static const Options & | plugin_options (const std::string &pname) |
Get the plugin options. More... | |
static Deserialize | plugin_deserialize (const std::string &pname) |
Get the plugin deserialize_map. More... | |
static Plugin | pluginFromRegFcn (RegFcn regfcn) |
Instantiate a Plugin struct from a factory function. More... | |
static Plugin | load_plugin (const std::string &pname, bool register_plugin=true, bool needs_lock=true) |
Load a plugin dynamically. More... | |
static handle_t | load_library (const std::string &libname, std::string &resultpath, bool global) |
Load a library dynamically. More... | |
static void | registerPlugin (const Plugin &plugin, bool needs_lock=true) |
Register an integrator in the factory. More... | |
static void | registerPlugin (RegFcn regfcn, bool needs_lock=true) |
Register an integrator in the factory. More... | |
static Plugin & | getPlugin (const std::string &pname) |
Load and get the creator function. More... | |
static Filesystem * | instantiate (const std::string &fname, const std::string &pname, Problem problem) |
static ProtoFunction * | deserialize (DeserializingStream &s) |
Deserialize with type disambiguation. More... | |
Static Public Attributes | |
static const std::string | meta_doc |
A documentation string. More... | |
static std::map< std::string, Plugin > | solvers_ |
Collection of solvers. More... | |
static const std::string | infix_ = "filesystem" |
Infix. More... | |
|
inherited |
Definition at line 55 of file filesystem_impl.hpp.
|
inherited |
Definition at line 48 of file filesystem_impl.hpp.
|
inherited |
Definition at line 58 of file filesystem_impl.hpp.
|
inherited |
Definition at line 51 of file filesystem_impl.hpp.
|
inherited |
Definition at line 52 of file filesystem_impl.hpp.
|
inherited |
Definition at line 47 of file filesystem_impl.hpp.
|
inherited |
Definition at line 54 of file filesystem_impl.hpp.
|
inherited |
Definition at line 53 of file filesystem_impl.hpp.
|
inherited |
Definition at line 73 of file plugin_interface.hpp.
|
inherited |
Definition at line 49 of file filesystem_impl.hpp.
|
inherited |
Definition at line 50 of file filesystem_impl.hpp.
|
staticinherited |
Definition at line 78 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::FmuInternal::finalize().
|
staticinherited |
Definition at line 87 of file filesystem.cpp.
References casadi::Filesystem::is_enabled().
Referenced by casadi::Filesystem::absolute(), casadi::Filesystem::create_directories(), casadi::extract_zip_internal(), casadi::Filesystem::filename(), casadi::Filesystem::has_parent_path(), casadi::Filesystem::is_directory(), casadi::Filesystem::iterate_directory_names(), casadi::Filesystem::parent_path(), casadi::Filesystem::remove(), and casadi::Filesystem::remove_all().
|
staticinherited |
Definition at line 63 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::Filesystem::ensure_directory_exists().
|
inlinestaticinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_rr
Definition at line 121 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 105 of file filesystem.cpp.
References casadi::Filesystem::create_directories(), casadi::Filesystem::filename(), casadi::Filesystem::has_parent_path(), casadi::Filesystem::is_directory(), and casadi::Filesystem::parent_path().
Referenced by casadi::Filesystem::open().
|
staticinherited |
Definition at line 73 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::Filesystem::ensure_directory_exists(), casadi::Filesystem::open(), and casadi::ZipResource::unpack().
|
staticinherited |
Definition at line 102 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 53 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::Filesystem::ensure_directory_exists(), and casadi::DllLibrary::init_handle().
|
staticinherited |
Definition at line 76 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 106 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 38 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::Filesystem::ensure_directory_exists(), and casadi::Resource::Resource().
|
staticinherited |
Definition at line 83 of file filesystem.cpp.
References casadi::PluginInterface< Filesystem >::has_plugin().
Referenced by casadi::Filesystem::assert_enabled(), casadi::FmuInternal::finalize(), casadi::DllLibrary::init_handle(), casadi::DaeBuilderInternal::load_fmi_description(), casadi::Filesystem::open(), casadi::Resource::Resource(), and casadi::ZipResource::unpack().
|
staticinherited |
Definition at line 68 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
|
staticinherited |
Definition at line 92 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 88 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 134 of file filesystem.cpp.
References casadi::Filesystem::open(), and casadi::path().
|
staticinherited |
Definition at line 115 of file filesystem.cpp.
References casadi::Filesystem::ensure_directory_exists(), casadi::Filesystem::filename(), and casadi::Filesystem::is_enabled().
Referenced by casadi::conic_debug(), casadi::Function::export_code(), casadi::CodeGenerator::file_open(), casadi::FunctionInternal::generate_in(), casadi::Function::generate_in(), casadi::Function::generate_out(), casadi::FunctionInternal::generate_out(), casadi::FmuFunction::init(), casadi::Linsol::nfact(), casadi::Filesystem::ofstream_ptr(), and casadi::Sparsity::to_file().
|
staticinherited |
Definition at line 58 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::Filesystem::ensure_directory_exists(), and casadi::DllLibrary::init_handle().
|
staticinherited |
Definition at line 82 of file plugin_interface.hpp.
|
pure virtualinherited |
|
staticinherited |
Definition at line 79 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 85 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 96 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 99 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 43 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::ZipMemResource::~ZipMemResource(), and casadi::ZipResource::~ZipResource().
|
staticinherited |
Definition at line 48 of file filesystem.cpp.
References casadi::Filesystem::assert_enabled(), casadi::PluginInterface< Filesystem >::getPlugin(), and casadi::path().
Referenced by casadi::ZipMemResource::~ZipMemResource(), and casadi::ZipResource::~ZipResource().
|
inlineinherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_rq
Definition at line 114 of file plugin_interface.hpp.
|
staticinherited |
Definition at line 103 of file filesystem_impl.hpp.
|
static |
Definition at line 54 of file ghc.hpp.
Referenced by casadi::casadi_register_filesystem_ghc().
|
staticinherited |
Definition at line 76 of file filesystem_impl.hpp.