diff --git a/ext/miniscript/src/miniscript/miniscript/NativeLibrary.h b/ext/miniscript/src/miniscript/miniscript/NativeLibrary.h new file mode 100644 index 000000000..7bf3a7945 --- /dev/null +++ b/ext/miniscript/src/miniscript/miniscript/NativeLibrary.h @@ -0,0 +1,42 @@ +#pragma once + +#include + +#include +#include +#include + +using std::string; + +using miniscript::miniscript::MiniScript; + +using _Context = miniscript::miniscript::Context; +using _Library = miniscript::miniscript::Library; + +/** + * Native script library + * @author Andreas Drewke + */ +class miniscript::miniscript::NativeLibrary: public _Library +{ + +public: + // forbid class copy + FORBID_CLASS_COPY(NativeLibrary) + + /** + * Constructor + */ + NativeLibrary(_Context* context): _Library(context) { + } + + /** + * Load script from library + * @param pathName path name + * @param fileName file name + * @param basePathName base path name + * @return MiniScript script from library + */ + virtual MiniScript* loadScript(const string& pathName, const string& fileName, const string& basePathName = string()) override; + +};