X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirElement.h;h=a214c47e622c29f4b2014ff5feb1fca7ba4f4a6f;hb=a9f954f2b63d67c79b206acec6493c3395030147;hp=c23be83a9e6b22a8c995205b99a9cfadd164d117;hpb=bfc89bbbac631c3271dd5b628610b06d30845f41;p=gdcm.git diff --git a/src/gdcmDicomDirElement.h b/src/gdcmDicomDirElement.h index c23be83a..a214c47e 100644 --- a/src/gdcmDicomDirElement.h +++ b/src/gdcmDicomDirElement.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirElement.h,v $ Language: C++ - Date: $Date: 2005/02/05 00:22:14 $ - Version: $Revision: 1.25 $ + Date: $Date: 2005/02/07 14:48:34 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -27,19 +27,6 @@ namespace gdcm { //----------------------------------------------------------------------------- -/** - * \brief internal structure, not end user intended - * shouln't appear here - */ -typedef struct -{ - /// DicomGroup number - unsigned short int Group; - /// DicomElement number - unsigned short int Elem; - /// value (coded as a std::string) of the Element - std::string Value; -} Element; typedef std::list ListDicomDirElem; typedef std::list ListDicomDirMetaElem; @@ -50,8 +37,8 @@ typedef std::list ListDicomDirImageElem; //----------------------------------------------------------------------------- /** - * \brief Represents elements contained in a DicomDir - * class for the chained lists from the file 'Dicts/DicomDir.dic' + * \brief Represents elements contained in a DicomDir class + * for the chained lists from the file 'Dicts/DicomDir.dic' */ class GDCM_EXPORT DicomDirElement { @@ -102,6 +89,10 @@ public: // Public method to add an element bool AddEntry(DicomDirType type, Element const &elem); + // Only one instance of ddElem + void AddDicomDirElement(DicomDirType type, + uint16_t group, uint16_t elem); + private: /// Elements chained list, related to the MetaElements of DICOMDIR ListDicomDirMetaElem DicomDirMetaList;