Skip to content

Commit

Permalink
Ooops, forgot about this file
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasdr committed Dec 19, 2023
1 parent ff058f8 commit 2511d95
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions ext/miniscript/src/miniscript/miniscript/NativeLibrary.h
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;

};

0 comments on commit 2511d95

Please sign in to comment.