Mercurial > hg > orthanc
comparison OrthancFramework/Sources/Lua/LuaContext.h @ 4300:b30a8de92ad9
abi continued
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 05 Nov 2020 19:33:18 +0100 |
parents | bf7b9edf6b81 |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4299:3f85db78c441 | 4300:b30a8de92ad9 |
---|---|
92 public: | 92 public: |
93 LuaContext(); | 93 LuaContext(); |
94 | 94 |
95 ~LuaContext(); | 95 ~LuaContext(); |
96 | 96 |
97 void Execute(const std::string& command) | 97 void Execute(const std::string& command); |
98 { | |
99 ExecuteInternal(NULL, command); | |
100 } | |
101 | 98 |
102 void Execute(std::string& output, | 99 void Execute(std::string& output, |
103 const std::string& command) | 100 const std::string& command); |
104 { | |
105 ExecuteInternal(&output, command); | |
106 } | |
107 | 101 |
108 void Execute(Json::Value& output, | 102 void Execute(Json::Value& output, |
109 const std::string& command); | 103 const std::string& command); |
110 | 104 |
111 bool IsExistingFunction(const char* name); | 105 bool IsExistingFunction(const char* name); |
112 | 106 |
113 #if ORTHANC_ENABLE_CURL == 1 | 107 #if ORTHANC_ENABLE_CURL == 1 |
114 void SetHttpCredentials(const char* username, | 108 void SetHttpCredentials(const char* username, |
115 const char* password) | 109 const char* password); |
116 { | |
117 httpClient_.SetCredentials(username, password); | |
118 } | |
119 #endif | 110 #endif |
120 | 111 |
121 void RegisterFunction(const char* name, | 112 void RegisterFunction(const char* name, |
122 lua_CFunction func); | 113 lua_CFunction func); |
123 | 114 |