X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirImage.h;h=86ae4e6356e9a42550c8a151d1afaa41bd1601fa;hb=bd7bec4c367d671a9da358584e98a8ec29bb641e;hp=e2d74927adde3c06b0af98ca75625710a7f9981e;hpb=30d2b02b938fe912d866b40ca2b9842961481ab2;p=gdcm.git diff --git a/src/gdcmDicomDirImage.h b/src/gdcmDicomDirImage.h index e2d74927..86ae4e63 100644 --- a/src/gdcmDicomDirImage.h +++ b/src/gdcmDicomDirImage.h @@ -1,20 +1,47 @@ -// gdcmDicomDirImage.h -//----------------------------------------------------------------------------- -#ifndef GDCMDICOMIMAGE_H -#define GDCMDICOMIMAGE_H +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirImage.h,v $ + Language: C++ + Date: $Date: 2007/08/22 16:14:03 $ + Version: $Revision: 1.20 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + +#ifndef _GDCMDICOMIMAGE_H_ +#define _GDCMDICOMIMAGE_H_ -#include "gdcmObject.h" +#include "gdcmDicomDirObject.h" +namespace GDCM_NAME_SPACE +{ //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirImage : public gdcmObject { +/** + * \brief describes an IMAGE within a SERIE + * (DicomDirSerie) of a given DICOMDIR (DicomDir) + */ + class GDCM_EXPORT DicomDirImage : public DicomDirObject +{ + gdcmTypeMacro(DicomDirImage); + public: - gdcmDicomDirImage(gdcmSQItem *s, TagDocEntryHT *ptagHT); - gdcmDicomDirImage(TagDocEntryHT *ptagHT); +/// \brief Constructs a DicomDirImage with a RefCounter + static DicomDirImage *New(bool empty=false) {return new DicomDirImage(empty);} - ~gdcmDicomDirImage(void); + void Print(std::ostream &os = std::cout, std::string const &indent = "" ); - virtual void Print(std::ostream &os = std::cout); +protected: + DicomDirImage(bool empty=false); + ~DicomDirImage(); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif