X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirElement.cxx;h=b96ae416b5b4321683eb59264e6027b204573893;hb=4073467af614547a6cdd2b5d09d481fbea1a1f0c;hp=0545ddf3a6054f7d0ac492ae908cdba9151ff9e8;hpb=9ca0e4bb2208be93bebf21d0c5d75c8018e7605a;p=gdcm.git diff --git a/src/gdcmDicomDirElement.cxx b/src/gdcmDicomDirElement.cxx index 0545ddf3..b96ae416 100644 --- a/src/gdcmDicomDirElement.cxx +++ b/src/gdcmDicomDirElement.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirElement.cxx,v $ Language: C++ - Date: $Date: 2005/06/24 10:55:58 $ - Version: $Revision: 1.38 $ + Date: $Date: 2005/10/26 08:04:15 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -51,7 +51,7 @@ DicomDirElement::DicomDirElement() { char buff[1024]; std::string strType; - Element elem; + DicomElement elem; DicomDirType type; while (!from.eof()) @@ -115,7 +115,7 @@ DicomDirElement::~DicomDirElement() * @param type Element type (DD_PATIENT, DD_STUDY, DD_SERIE, DD_IMAGE) * @param elem elem */ -bool DicomDirElement::AddEntry(DicomDirType type, Element const &elem) +bool DicomDirElement::AddEntry(DicomDirType type, DicomElement const &elem) { switch( type ) { @@ -150,12 +150,13 @@ bool DicomDirElement::AddEntry(DicomDirType type, Element const &elem) void DicomDirElement::AddDicomDirElement(DicomDirType type, uint16_t group, uint16_t elem) { - Element el; + DicomElement el; el.Group = group; el.Elem = elem; el.Value = ""; AddEntry(type, el); } + //----------------------------------------------------------------------------- // Protected @@ -168,12 +169,12 @@ void DicomDirElement::AddDicomDirElement(DicomDirType type, * \brief Print all * @param os The output stream to be written to. */ -void DicomDirElement::Print(std::ostream &os) +void DicomDirElement::Print(std::ostream &os,std::string const &) { std::ostringstream s; - std::list::iterator it; + std::list::iterator it; //char greltag[10]; //group element tag - std::string greltag; + TagKey greltag; s << "Meta Elements :"<