X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.h;h=5828bfd72c1e1aa1a8788a4288d27df06dbbbe1b;hb=1a11accd11061d63d3c09db7b1445637207e81e4;hp=f729d9b7c7888d659721082ce706b0e0a4f56aea;hpb=1e74cf45bc96f14c342cc404f0f91dfffe0810b9;p=gdcm.git diff --git a/src/gdcmDictEntry.h b/src/gdcmDictEntry.h index f729d9b7..5828bfd7 100644 --- a/src/gdcmDictEntry.h +++ b/src/gdcmDictEntry.h @@ -35,7 +35,7 @@ public: * * @return */ - inline bool IsVRUnknown() {return vr == "Unknown"; } + inline bool IsVRUnknown() {return vr == "??"; } /** * \ingroup gdcmDictEntry @@ -91,21 +91,43 @@ public: inline std::string GetKey(void) { return key; } private: - // FIXME : were are the group and element used except from building up + // FIXME : where are the group and element used except from building up // a TagKey. If the answer is nowhere then there is no need // to store the group and element independently. + // + // --> EVERYWHERE ! The alternate question would be : + // What's TagKey used for ? + + /// DicomGroup number guint16 group; // e.g. 0x0010 + /// DicomElement number guint16 element; // e.g. 0x0103 - std::string vr; // Value Representation i.e. some clue about the nature - // of the data represented e.g. "FD" short for - // "Floating Point Double" + /** + * \ingroup gdcmDictEntry + * \brief Value Representation i.e. some clue about the nature + * of the data represented + * e.g. "FD" short for "Floating Point Double" + */ + std::string vr; + // CLEANME: find the official dicom name for this field ! - std::string fourth; // Fourth field containing some semantics. - //(Group Name abbr.) - std::string name; // e.g. "Patient_Name" - TagKey key; // Redundant with (group, element) but we add it - // on efficiency purposes. - + /** + * \ingroup gdcmDictEntry + * \brief Fourth field containing some semantics + * (Group Name abbr.) + * DON'T USER ANY LONGER ! + */ + std::string fourth; + /// e.g. "Patient's Name" + std::string name; + /// Redundant with (group, element) but we add it + /// on efficiency purposes. + /** + * \ingroup gdcmDictEntry + * \brief Redundant with (group, element) but we add it + * on efficiency purposes. + */ TagKey key; + // DCMTK has many fields for handling a DictEntry (see below). What are the // relevant ones for gdcmlib ? // struct DBI_SimpleEntry {