X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=8fc668bad1943a8c91f30ba77c6ddea07a302479;hb=5507525c9f8cfcab45e7f9ad684a4a825ec86b16;hp=fe3de1232c941292ff5c5057f329c62bca3c010b;hpb=4b4569ba7d0829cf3782ff6b5bbe5ae1009466e6;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index fe3de123..8fc668ba 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/08/01 02:39:09 $ - Version: $Revision: 1.5 $ + Date: $Date: 2005/11/21 09:46:25 $ + Version: $Revision: 1.21 $ 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 @@ -19,18 +19,31 @@ #ifndef GDCMDICOMDIRMETA_H #define GDCMDICOMDIRMETA_H -#include "gdcmObject.h" +#include "gdcmDicomDirObject.h" + +namespace gdcm +{ //----------------------------------------------------------------------------- -class GDCM_EXPORT gdcmDicomDirMeta : public gdcmObject +/** + * \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 Print(std::ostream &os = std::cout, std::string const &indent = "" ); + virtual void WriteContent(std::ofstream *fp, FileType t); + int ComputeGroup0002Length( ); + +protected: + DicomDirMeta(bool empty=false); + ~DicomDirMeta(); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif