comparison OrthancServer/Sources/LuaScripting.cpp @ 4204:318c16cfccab

cppcheck
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 17 Sep 2020 16:18:01 +0200
parents 05b8fd21089c
children 9dc0e42f868b
comparison
equal deleted inserted replaced
4203:4d42408da117 4204:318c16cfccab
72 metadata_(metadata) 72 metadata_(metadata)
73 { 73 {
74 instance.GetOrigin().Format(origin_); 74 instance.GetOrigin().Format(origin_);
75 } 75 }
76 76
77 virtual void Apply(LuaScripting& that) 77 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
78 { 78 {
79 static const char* NAME = "OnStoredInstance"; 79 static const char* NAME = "OnStoredInstance";
80 80
81 LuaScripting::Lock lock(that); 81 LuaScripting::Lock lock(that);
82 82
101 { 101 {
102 private: 102 private:
103 std::string command_; 103 std::string command_;
104 104
105 public: 105 public:
106 ExecuteEvent(const std::string& command) : 106 explicit ExecuteEvent(const std::string& command) :
107 command_(command) 107 command_(command)
108 { 108 {
109 } 109 }
110 110
111 virtual void Apply(LuaScripting& that) 111 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
112 { 112 {
113 LuaScripting::Lock lock(that); 113 LuaScripting::Lock lock(that);
114 114
115 if (lock.GetLua().IsExistingFunction(command_.c_str())) 115 if (lock.GetLua().IsExistingFunction(command_.c_str()))
116 { 116 {
125 { 125 {
126 private: 126 private:
127 ServerIndexChange change_; 127 ServerIndexChange change_;
128 128
129 public: 129 public:
130 StableResourceEvent(const ServerIndexChange& change) : 130 explicit StableResourceEvent(const ServerIndexChange& change) :
131 change_(change) 131 change_(change)
132 { 132 {
133 } 133 }
134 134
135 virtual void Apply(LuaScripting& that) 135 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
136 { 136 {
137 const char* name; 137 const char* name;
138 138
139 switch (change_.GetChangeType()) 139 switch (change_.GetChangeType())
140 { 140 {
221 type_(type), 221 type_(type),
222 jobId_(jobId) 222 jobId_(jobId)
223 { 223 {
224 } 224 }
225 225
226 virtual void Apply(LuaScripting& that) 226 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
227 { 227 {
228 std::string functionName; 228 std::string functionName;
229 229
230 switch (type_) 230 switch (type_)
231 { 231 {
271 level_(level), 271 level_(level),
272 publicId_(publicId) 272 publicId_(publicId)
273 { 273 {
274 } 274 }
275 275
276 virtual void Apply(LuaScripting& that) 276 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
277 { 277 {
278 std::string functionName; 278 std::string functionName;
279 279
280 switch (level_) 280 switch (level_)
281 { 281 {
325 level_(level), 325 level_(level),
326 publicId_(publicId) 326 publicId_(publicId)
327 { 327 {
328 } 328 }
329 329
330 virtual void Apply(LuaScripting& that) 330 virtual void Apply(LuaScripting& that) ORTHANC_OVERRIDE
331 { 331 {
332 std::string functionName; 332 std::string functionName;
333 333
334 switch (level_) 334 switch (level_)
335 { 335 {