Mercurial > hg > orthanc
comparison OrthancServer/LuaScripting.cpp @ 1455:a68545767975
Initialize() and Finalize() events in Lua
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 02 Jul 2015 15:17:19 +0200 |
parents | 164a381abb2b |
children | 68827c07e683 |
comparison
equal
deleted
inserted
replaced
1454:9de4fa64e29c | 1455:a68545767975 |
---|---|
486 } | 486 } |
487 } | 487 } |
488 | 488 |
489 return true; | 489 return true; |
490 } | 490 } |
491 | |
492 | |
493 void LuaScripting::Execute(const std::string& command) | |
494 { | |
495 LuaScripting::Locker locker(*this); | |
496 | |
497 if (locker.GetLua().IsExistingFunction(command.c_str())) | |
498 { | |
499 LuaFunctionCall call(locker.GetLua(), command.c_str()); | |
500 call.Execute(); | |
501 } | |
502 } | |
491 } | 503 } |