X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDicomDirMeta.h;h=96403f23c0ecb8c15ab61ce017bd8352a540ff93;hb=c556c62e38ad8f5b0423a91d919c13ac85a23f32;hp=abc5d010ff1d750ae7867089ea02b190dae321a7;hpb=22f785a2627d1e7823701193bd7624739a3e033b;p=gdcm.git diff --git a/src/gdcmDicomDirMeta.h b/src/gdcmDicomDirMeta.h index abc5d010..96403f23 100644 --- a/src/gdcmDicomDirMeta.h +++ b/src/gdcmDicomDirMeta.h @@ -1,19 +1,47 @@ -// gdcmDicomDirMeta.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDicomDirMeta.h,v $ + Language: C++ + Date: $Date: 2005/10/25 14:52:33 $ + Version: $Revision: 1.19 $ + + 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.html for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #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 { + gdcmTypeMacro(DicomDirMeta); + public: - gdcmDicomDirMeta(ListTag::iterator begin,ListTag::iterator end); - ~gdcmDicomDirMeta(void); + static DicomDirMeta *New(bool empty=false) {return new DicomDirMeta(empty);} - virtual void Print(std::ostream &os = std::cout); -}; + virtual void Print(std::ostream &os = std::cout, std::string const &indent = "" ); + virtual void WriteContent(std::ofstream *fp, FileType t); +protected: + DicomDirMeta(bool empty=false); + ~DicomDirMeta(); +}; +} // end namespace gdcm //----------------------------------------------------------------------------- #endif