X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.cxx;h=85449a083320d0ddc5f6914c69d7fe3f100f1be3;hb=06e5584ba82b9878b3e544a53c9575cf363fdb8c;hp=3e9b109e14cc6bc80bd31866554c08cbfb6357b1;hpb=55f3727f18aa712ea6d349de40b6a22ba2b6516d;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index 3e9b109e..85449a08 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -1,11 +1,23 @@ -// gdcmDict.cxx +// gdcmDictEntry.cxx -#include "gdcm.h" +//This is needed when compiling in debug mode +#ifdef _MSC_VER +// 'identifier' : class 'type' needs to have dll-interface to be used by +// clients of class 'type2' +#pragma warning ( disable : 4251 ) +// 'identifier' : identifier was truncated to 'number' characters in the +// debug information +#pragma warning ( disable : 4786 ) +#endif //_MSC_VER + +#include // FIXME For sprintf +#include "gdcmDictEntry.h" #include "gdcmUtil.h" + gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement, - string InVr, string InFourth, string InName) -{ + std::string InVr, std::string InFourth, + std::string InName) { group = InGroup; element = InElement; vr = InVr; @@ -30,7 +42,7 @@ TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) { * \brief If-and only if-the vr is unset then overwrite it. * @param NewVr New vr to be set. */ -void gdcmDictEntry::SetVR(string NewVr) { +void gdcmDictEntry::SetVR(std::string NewVr) { if ( IsVrUnknown() ) vr = NewVr; else {