X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.h;h=d23d61303833751400678938f0d26ec86995d026;hb=e362e154b84f087750d1ed1f6671a34b3bf5ff7a;hp=8e6e51adab74897ae5a5e5839f0ab235e80cc5a5;hpb=8c7ca53952f8a597259d7f27240c8eb42b9d39aa;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 8e6e51ad..d23d6130 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2005/10/06 18:54:50 $ - Version: $Revision: 1.117 $ + Date: $Date: 2005/10/26 09:15:19 $ + Version: $Revision: 1.119 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -98,10 +98,10 @@ enum ModalityType { */ class GDCM_EXPORT File : public Document { + gdcmTypeMacro(File); + public: - File(); - GDCM_LEGACY(File( std::string const &filename )); - ~File(); + static File *New() {return new File();} // Loading GDCM_LEGACY(bool Load( std::string const &filename )); @@ -175,7 +175,12 @@ public: bool Write(std::string fileName, FileType filetype); protected: - + File(); + ~File(); + /// \brief Protect the Writer from writing illegal groups + bool MayIWrite(uint16_t group) + { if (group < 8 && group !=2 ) return false; else return true; } + /// Store the RLE frames info obtained during parsing of pixels. RLEFramesInfo *RLEInfo; /// Store the JPEG fragments info obtained during parsing of pixels.