X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.cxx;h=1e135cb65dae7045e178320209bfad79d0e3628b;hb=9d217e6d20ba46665976a7ac3e631ac52b6cb360;hp=0294d7b56a57a166f97fec85f7c89c57978c983d;hpb=8e657a0766489604ade10a101d0d8995bcb79280;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index 0294d7b5..1e135cb6 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -1,15 +1,29 @@ -#include "gdcm.h" +// gdcmDictEntry.cxx + +//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) -{ - group = InGroup; - element = InElement; - vr = InVr; - fourth = InFourth; - name = InName; - key = TranslateToKey(group, element); + std::string InVr, std::string InFourth, + std::string InName) { + group = InGroup; + element = InElement; + vr = InVr; + fourth = InFourth; + name = InName; + key = TranslateToKey(group, element); } TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) { @@ -28,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 {