X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=b8015d1ce5919c8eeb060dfa20b55ad37312f675;hb=3d5d93041db5d0e11cef63ea1ec069bb0e65b013;hp=7f8bd5799b6e9d15dc0cb2509bb31c870f5f157c;hpb=3fd520b58c8d1939994de2c63cc038c3e7ac9522;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index 7f8bd579..b8015d1c 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/26 15:29:52 $ - Version: $Revision: 1.6 $ + Date: $Date: 2005/11/03 14:29:23 $ + 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.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,19 +19,30 @@ #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: + 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); + int ComputeGroup0002Length( ); + +protected: + DicomDirMeta(bool empty=false); + ~DicomDirMeta(); }; - +} // end namespace gdcm //----------------------------------------------------------------------------- #endif