X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=ee793596bb76531acfe21e6218df1002943abd52;hb=ef0e08814ac95a5412e8650112e23add221767d1;hp=5dd4ee826f95c9563cdf0b89bb8a9a97f2d242b2;hpb=ba78e6c6d47d6db1528e8e88e5ebde7296a26692;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index 5dd4ee82..ee793596 100644 --- a/src/gdcmDicomDirMeta.h +++ b/src/gdcmDicomDirMeta.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDicomDirMeta.h,v $ Language: C++ - Date: $Date: 2004/12/03 20:16:57 $ - Version: $Revision: 1.13 $ + Date: $Date: 2007/08/22 16:14:03 $ + Version: $Revision: 1.24 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -16,23 +16,33 @@ =========================================================================*/ -#ifndef GDCMDICOMDIRMETA_H -#define GDCMDICOMDIRMETA_H +#ifndef _GDCMDICOMDIRMETA_H_ +#define _GDCMDICOMDIRMETA_H_ #include "gdcmDicomDirObject.h" -namespace gdcm +namespace GDCM_NAME_SPACE { //----------------------------------------------------------------------------- +/** + * \brief Meta Elements (group 0002) of a DicomDir + */ class GDCM_EXPORT DicomDirMeta : public DicomDirObject { + gdcmTypeMacro(DicomDirMeta); + public: - DicomDirMeta(); - ~DicomDirMeta(); +/// \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 WriteContent(std::ofstream * 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); + int ComputeGroup0002Length( ); + +protected: + DicomDirMeta(bool empty=false); + ~DicomDirMeta(); }; } // end namespace gdcm //-----------------------------------------------------------------------------