X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmFile.h;h=af9382efac99beb6e325683ae3bc0eb660075105;hb=befb2f26b6053ac140ffa008e41d7bb8d7eeafc8;hp=2cfd69f70eded4db1f3ea55986771a83126c3649;hpb=922095a0dd56f24d651b36f62256690020937d9a;p=gdcm.git diff --git a/src/gdcmFile.h b/src/gdcmFile.h index 2cfd69f7..af9382ef 100644 --- a/src/gdcmFile.h +++ b/src/gdcmFile.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmFile.h,v $ Language: C++ - Date: $Date: 2004/12/10 13:49:07 $ - Version: $Revision: 1.86 $ + Date: $Date: 2005/01/06 08:46:21 $ + Version: $Revision: 1.90 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -19,7 +19,8 @@ #ifndef GDCMFILE_H #define GDCMFILE_H -#include "gdcmCommon.h" +#include +#include "gdcmBase.h" namespace gdcm { @@ -35,7 +36,7 @@ class DocEntryArchive; * for accessing the image/volume content. One can also use it to * write Dicom/ACR-NEMA/RAW files. */ -class GDCM_EXPORT File +class GDCM_EXPORT File : public Base { public: enum FileMode @@ -51,6 +52,8 @@ public: virtual ~File(); + void Print(std::ostream &os = std::cout); + /// Accessor to \ref Header Header* GetHeader() { return HeaderInternal; } @@ -90,7 +93,7 @@ public: bool ReplaceOrCreateByNumber(std::string const& content, uint16_t group, uint16_t element); bool ReplaceOrCreateByNumber(uint8_t* binArea, int lgth, - uint16_t group, uint16_t elem); + uint16_t group, uint16_t element); uint8_t* GetLutRGBA(); @@ -109,7 +112,6 @@ public: FileType GetWriteType() { return WriteType; }; protected: - bool WriteBase(std::string const& fileName); bool CheckWriteIntegrity(); void SetWriteToRaw(); @@ -133,9 +135,7 @@ private: uint8_t* GetRaw(); -private: // members variables: - /// Header to use to load the file Header *HeaderInternal;