comparison ViewerPlugin/Plugin.cpp @ 5:77b76c1a213f

check the version of the Orthanc core
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 26 Oct 2016 13:34:49 +0200
parents 4a7a53257c7d
children 62adabb8c122
comparison
equal deleted inserted replaced
4:e49aaf9127ca 5:77b76c1a213f
328 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER); 328 ORTHANC_PLUGINS_MINIMAL_REVISION_NUMBER);
329 OrthancPluginLogError(context_, info); 329 OrthancPluginLogError(context_, info);
330 return -1; 330 return -1;
331 } 331 }
332 332
333 if (!OrthancPlugins::CheckMinimalOrthancVersion(context_, 1, 1, 0))
334 {
335 // We need the "/instances/.../frames/.../raw" URI that was introduced in Orthanc 1.1.0
336 return -1;
337 }
338
333 // Limit the number of PNG transcoders to the number of available 339 // Limit the number of PNG transcoders to the number of available
334 // hardware threads (e.g. number of CPUs or cores or 340 // hardware threads (e.g. number of CPUs or cores or
335 // hyperthreading units) 341 // hyperthreading units)
336 unsigned int threads = boost::thread::hardware_concurrency(); 342 unsigned int threads = boost::thread::hardware_concurrency();
337 343