Mercurial > hg > orthanc
comparison Plugins/Engine/PluginsManager.cpp @ 1297:501432928727
refactoring
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 06 Feb 2015 14:35:56 +0100 |
parents | 6e7e5ed91c2d |
children | 7b6925b0890d |
comparison
equal
deleted
inserted
replaced
1296:179a3049b942 | 1297:501432928727 |
---|---|
294 { | 294 { |
295 if (boost::filesystem::extension(it->path()) == PLUGIN_EXTENSION) | 295 if (boost::filesystem::extension(it->path()) == PLUGIN_EXTENSION) |
296 { | 296 { |
297 LOG(INFO) << "Found a shared library: " << it->path(); | 297 LOG(INFO) << "Found a shared library: " << it->path(); |
298 | 298 |
299 try | 299 SharedLibrary plugin(path); |
300 if (IsOrthancPlugin(plugin)) | |
300 { | 301 { |
301 SharedLibrary plugin(path); | 302 RegisterPlugin(path); |
302 if (IsOrthancPlugin(plugin)) | |
303 { | |
304 RegisterPlugin(path); | |
305 } | |
306 } | |
307 catch (OrthancException&) | |
308 { | |
309 } | 303 } |
310 } | 304 } |
311 } | 305 } |
312 } | 306 } |
313 } | 307 } |