2 #include "namespaces.hh"
3 #include <boost/variant/variant.hpp>
11 #include "ext/luawrapper/include/LuaContext.hpp"
14 class BaseLua4 : public boost::noncopyable
18 std::unique_ptr<LuaContext> d_lw; // this is way on top because it must get destroyed _last_
23 void loadFile(const std::string &fname);
24 void loadString(const std::string &script);
25 void loadStream(std::istream &is);
26 virtual ~BaseLua4(); // this is so unique_ptr works with an incomplete type
28 void prepareContext();
29 virtual void postPrepareContext() = 0;
30 virtual void postLoad() = 0;
31 typedef vector<pair<string, int> > in_t;
32 vector<pair<string, boost::variant<int, in_t, struct timeval* > > > d_pd;