summaryrefslogtreecommitdiff
path: root/hscript/script.hh
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-10 23:30:18 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-10-10 23:30:18 -0500
commit615278f3365087e436ee5ea13e0d15bd60718038 (patch)
tree9b67e19184a743c0ee3672b6266b281a6d7e8799 /hscript/script.hh
parent8bb3f48cb970a410d93940c675c4a086af9fbcdd (diff)
downloadhorizon-615278f3365087e436ee5ea13e0d15bd60718038.tar.gz
horizon-615278f3365087e436ee5ea13e0d15bd60718038.tar.bz2
horizon-615278f3365087e436ee5ea13e0d15bd60718038.tar.xz
horizon-615278f3365087e436ee5ea13e0d15bd60718038.zip
hscript: Allow multiple inheritance
This allows a HorizonScript to inherit from multiple files. Files are parsed in a system-defined, unspecified order, but all scripts of a given depth are guaranteed to be parsed before the next depth.
Diffstat (limited to 'hscript/script.hh')
-rw-r--r--hscript/script.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/hscript/script.hh b/hscript/script.hh
index 9befb41..a34668a 100644
--- a/hscript/script.hh
+++ b/hscript/script.hh
@@ -59,6 +59,10 @@ private:
/*! Initialise the Script class. */
Script();
ScriptOptions opts;
+
+ static std::pair< bool, std::vector<std::string> >
+ readFromStream(std::istream *, Script *, const ScriptOptions &,
+ const std::string &, int &, int &, bool);
public:
/*! Free resources associated with the Script. */
~Script();