-
-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#pragma once | ||
|
||
#include <string> | ||
|
||
#include <miniscript/miniscript.h> | ||
#include <miniscript/miniscript/fwd-miniscript.h> | ||
#include <miniscript/miniscript/Library.h> | ||
|
||
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; | ||
|
||
}; |