X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmFile.h;h=dd5b4655e87e720530cc6f336f11014260b4cbd4;hb=2012716d624d631dcdb825fdd4470908e115a717;hp=794e2b2706659bba7481e8a010bb3d256dec0e9b;hpb=5c198a737e21a72460f81e81a1b9405b5a591b60;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 794e2b27..dd5b4655 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -1,5 +1,21 @@ -// gdcmFile.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmFile.h,v $ + Language: C++ + Date: $Date: 2004/06/20 18:08:47 $ + Version: $Revision: 1.30 $ + + 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.htm 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 GDCMFILE_H #define GDCMFILE_H @@ -75,6 +91,11 @@ public: // Body in file gdcmParse.cxx bool ParsePixelData(void); + + inline virtual bool SetEntryByNumber(std::string content, + guint16 group, guint16 element) + { GetHeader()->SetEntryByNumber(content,group,element); } + protected: bool WriteBase(std::string FileName, FileType type); @@ -101,7 +122,9 @@ private: /// \brief Header to use to load the file gdcmHeader *Header; - /// \brief Oops ! Eric : help me + /// \brief Whether the underlying \ref gdcmHeader was loaded by + /// the constructor or passed to the constructor. When false + /// the destructor is in charge of deletion. bool SelfHeader; /// \brief to hold the Pixels (when read)