X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.cxx;h=0bc2afa901276bded0774da7b48255373a2a723b;hb=d4faf2fa2fcd6beba4ba8da5557b3841adfe36dd;hp=ddef65335315a9cdf9a45473f65d968383be5c9d;hpb=5a6910a313a526514242a21b868c7186fca14168;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index ddef6533..0bc2afa9 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -1,10 +1,12 @@ // gdcmDictEntry.cxx - +//----------------------------------------------------------------------------- #include "gdcmDictEntry.h" #include // FIXME For sprintf #include "gdcmUtil.h" +//----------------------------------------------------------------------------- +// Constructor / Destructor /** * \ingroup gdcmDictEntry * \brief Construtor @@ -19,20 +21,25 @@ gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement, std::string InVr, std::string InFourth, std::string InName) { - group = InGroup; + group = InGroup; element = InElement; vr = InVr; - fourth = InFourth; + fourth = InFourth; name = InName; key = TranslateToKey(group, element); } +//----------------------------------------------------------------------------- +// Print + +//----------------------------------------------------------------------------- +// Public /** * \ingroup gdcmDictEntry * \brief concatenates 2 guint16 (supposed to be a Dicom group number * and a Dicom element number) * @param group the Dicom group number used to build the tag - * @param group the Dicom element number used to build the tag + * @param element the Dicom element number used to build the tag * return the built tag */ @@ -53,11 +60,22 @@ TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) { * is unset then overwrite it. * @param NewVr New V(alue) R(epresentation) to be set. */ -void gdcmDictEntry::SetVR(std::string NewVr) { - if ( IsVrUnknown() ) +void gdcmDictEntry::SetVR(std::string NewVr) +{ + if ( IsVRUnknown() ) vr = NewVr; - else { + else + { dbg.Error(true, "gdcmDictEntry::SetVR", "Overwriting vr might compromise a dictionary"); } } + +//----------------------------------------------------------------------------- +// Protected + +//----------------------------------------------------------------------------- +// Private + +//----------------------------------------------------------------------------- +