7 #include "fwDcmtkTools/Dictionary.hpp" 11 #include <fwRuntime/operations.hpp> 13 #include <boost/filesystem/operations.hpp> 14 #include <boost/filesystem/path.hpp> 16 #include <dcmtk/config/osconfig.h> 17 #include <dcmtk/dcmdata/dcdict.h> 18 #include <dcmtk/dcmnet/diutil.h> 28 if (!dcmDataDict.isDictionaryLoaded())
30 const auto dicoPath = ::fwRuntime::getLibraryResourceFilePath(
"fwDcmtkTools-" FWDCMTKTOOLS_VER
"/dicom.dic");
31 bool loaded = dcmDataDict.wrlock().loadDictionary(dicoPath.string().c_str());
33 SLM_ERROR_IF(
"Unable to load DICOM dictionary !", loaded);
34 SLM_ASSERT(
"Unable to load DICOM dictionary !", loaded);
#define SLM_ERROR_IF(message, cond)
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
#define SLM_TRACE(message)
This file defines SpyLog macros. These macros are used to log messages to a file or to the console du...