X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=df2f87ba02f1a71a19fb57447ea963bf774b61c6;hb=224876ca6cbe71952f2a1d66d9853eca7745d3a0;hp=c85114d43c9b92a43337046e4ad97c5dc6954369;hpb=ab0aa4fa11e3ac7ec236d1aceb6f0cf89fe83eae;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index c85114d4..df2f87ba 100644 --- a/src/gdcmDicomDirMeta.h +++ b/src/gdcmDicomDirMeta.h @@ -3,12 +3,12 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirMeta.h,v $ Language: C++ - Date: $Date: 2004/09/23 10:47:10 $ - Version: $Revision: 1.7 $ + Date: $Date: 2007/08/29 15:30:48 $ + Version: $Revision: 1.25 $ 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.htm for details. + 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 @@ -16,22 +16,34 @@ =========================================================================*/ -#ifndef GDCMDICOMDIRMETA_H -#define GDCMDICOMDIRMETA_H +#ifndef _GDCMDICOMDIRMETA_H_ +#define _GDCMDICOMDIRMETA_H_ #include "gdcmDicomDirObject.h" +namespace GDCM_NAME_SPACE +{ + //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirMeta : public gdcmDicomDirObject +/** + * \brief Meta Elements (group 0002) of a DicomDir + */ +class GDCM_EXPORT DicomDirMeta : public DicomDirObject { -public: - gdcmDicomDirMeta(TagDocEntryHT *ptagHT); + gdcmTypeMacro(DicomDirMeta); - ~gdcmDicomDirMeta(); +public: +/// \brief Constructs a DicomDirMeta with a RefCounter + static DicomDirMeta *New(bool empty=false) {return new DicomDirMeta(empty);} - virtual void Print(std::ostream &os = std::cout); - virtual void Write(FILE * fp, FileType t); + virtual void Print(std::ostream &os = std::cout, std::string const &indent = "" ); + virtual void WriteContent(std::ofstream *fp, FileType t, bool insideMetaElements, bool insideSequence); + int ComputeGroup0002Length( ); + +protected: + DicomDirMeta(bool empty=false); + ~DicomDirMeta(); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif