Mercurial > hg > orthanc
comparison Core/Lua/LuaContext.h @ 3442:dd1e68f2d0c0
Fix issue #106 (Unable to export preview as jpeg from Lua script)
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 24 Jun 2019 16:06:47 +0200 |
parents | 4e43e67f8ecf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3441:6cc72ebfd6ef | 3442:dd1e68f2d0c0 |
---|---|
85 bool AnswerHttpQuery(lua_State* state); | 85 bool AnswerHttpQuery(lua_State* state); |
86 | 86 |
87 void ExecuteInternal(std::string* output, | 87 void ExecuteInternal(std::string* output, |
88 const std::string& command); | 88 const std::string& command); |
89 | 89 |
90 void GetJson(Json::Value& result, | 90 static void GetJson(Json::Value& result, |
91 int top, | 91 lua_State* state, |
92 bool keepStrings); | 92 int top, |
93 bool keepStrings); | |
93 | 94 |
94 void SetHttpHeaders(lua_State* state, int top); | 95 void SetHttpHeaders(int top); |
95 | 96 |
96 public: | 97 public: |
97 LuaContext(); | 98 LuaContext(); |
98 | 99 |
99 ~LuaContext(); | 100 ~LuaContext(); |
134 | 135 |
135 static const void* GetGlobalVariable(lua_State* state, | 136 static const void* GetGlobalVariable(lua_State* state, |
136 const char* name); | 137 const char* name); |
137 | 138 |
138 void PushJson(const Json::Value& value); | 139 void PushJson(const Json::Value& value); |
140 | |
141 static void GetDictionaryArgument(std::map<std::string, std::string>& target, | |
142 lua_State* state, | |
143 int top, | |
144 bool keyToLowerCase); | |
139 }; | 145 }; |
140 } | 146 } |