X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=e7f8e26fc2fccf2cba15abdfea8b3216d924126d;hb=41fcaa925770000d87082af846146bf7a8d4438d;hp=9c50ee1607ef0d73bfc1aabe2f5f6e2a3c34f426;hpb=233c8b3ebb1aee6b1be6723d842eb2241b9ffb91;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index 9c50ee16..e7f8e26f 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 17:13:18 $ - Version: $Revision: 1.12 $ + Date: $Date: 2007/07/26 08:36:49 $ + Version: $Revision: 1.23 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,18 +20,29 @@ #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 //-----------------------------------------------------------------------------