X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=8fc668bad1943a8c91f30ba77c6ddea07a302479;hb=79d1ce76dfcb136e8b77aaeac859ba59973e7ae4;hp=a15732047dcfee641f08a5833dcbc8f558567e6b;hpb=fea9426f960497d2d9124ab532d2097f2915678f;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index a1573204..8fc668ba 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/10/22 03:05:41 $ - Version: $Revision: 1.10 $ + 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 @@ -20,19 +20,29 @@ #define GDCMDICOMDIRMETA_H #include "gdcmDicomDirObject.h" + namespace gdcm { //----------------------------------------------------------------------------- +/** + * \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 Write(std::ofstream * fp, FileType t); }; } // end namespace gdcm //-----------------------------------------------------------------------------