X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDicomDirMeta.h;h=dc46710708ef25785b3e8e6ae700f087d961bc72;hb=5d1e3fd08029804ede29b7392c2f1b7970b3c27f;hp=5a3059cbed8773b66882932bb5f0ade69a693818;hpb=1bae8d2ba47d1b9cc8acfb7b5ab82026e48275dd;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index 5a3059cb..dc467107 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/11/25 15:46:11 $ - Version: $Revision: 1.11 $ + Date: $Date: 2007/05/23 14:18:08 $ + Version: $Revision: 1.22 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -20,19 +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(TagDocEntryHT *ptagHT); +/// \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, std::string const &indent = "" ); + virtual void WriteContent(std::ofstream *fp, FileType t); + int ComputeGroup0002Length( ); + +protected: + DicomDirMeta(bool empty=false); ~DicomDirMeta(); - - virtual void Print(std::ostream &os = std::cout); - virtual void WriteContent(std::ofstream * fp, FileType t); }; } // end namespace gdcm //-----------------------------------------------------------------------------