X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.h;h=08b5388b5636efcb35fd8e927dd0b56f920b8b5d;hb=7b8dcad5fbb9b248952ad6819ef984e7880ef81e;hp=c07c94d297fb96d925178e21ce30e872eb934562;hpb=65467b71ee500909b0ef7c31d442ca0c160d6a15;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index c07c94d2..08b5388b 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -33,11 +33,13 @@ public: gdcmHeader(bool exception_on_error = false); gdcmHeader(const char *filename, bool exception_on_error = false, - bool enable_sequences = false); + bool enable_sequences = false, + bool skip_shadow = false); virtual ~gdcmHeader(); // Standard values and informations contained in the header + virtual bool IsReadable(void); bool IsJPEGBaseLineProcess1TransferSyntax(void); bool IsJPEGExtendedProcess2_4TransferSyntax(void); bool IsJPEGExtendedProcess3_5TransferSyntax(void); @@ -49,7 +51,7 @@ public: // Some heuristic based accessors, end user intended // (to be move to gdcmHeaderHelper?) - int GetXSize(void); + int GetXSize(void); int GetYSize(void); int GetZSize(void); int GetBitsStored(void); @@ -79,19 +81,24 @@ public: // TODO Swig int SetPubDict(std::string filename); // Entry - inline virtual std::string GetEntryByName (std::string tagName) - { return(gdcmParser::GetEntryByName(tagName)); } - inline virtual std::string GetEntryVRByName (std::string tagName) - { return(gdcmParser::GetEntryVRByName(tagName)); } + inline virtual std::string GetEntryByNumber (guint16 group, guint16 element) { return(gdcmParser::GetEntryByNumber(group,element)); } inline virtual std::string GetEntryVRByNumber(guint16 group, guint16 element) { return(gdcmParser::GetEntryVRByNumber(group,element)); } - - inline virtual bool SetEntryByName(std::string content,std::string tagName) - { return(gdcmParser::SetEntryByName(content,tagName)); } + + inline virtual std::string GetEntryByName (std::string tagName) + { return(gdcmParser::GetEntryByName(tagName)); } + inline virtual std::string GetEntryVRByName (std::string tagName) + { return(gdcmParser::GetEntryVRByName(tagName)); } + inline virtual bool SetEntryByNumber(std::string content,guint16 group, guint16 element) { return(gdcmParser::SetEntryByNumber(content,group,element)); } + inline virtual bool SetEntryByName(std::string content,std::string tagName) + { return(gdcmParser::SetEntryByName(content,tagName)); } + + inline virtual bool SetEntryLengthByNumber(guint32 l,guint16 group, guint16 element) + { return(gdcmParser::SetEntryLengthByNumber(l,group,element)); } inline virtual void UpdateShaEntries(void) { gdcmParser::UpdateShaEntries(); } @@ -99,11 +106,14 @@ public: // Read (used in gdcmFile) void SetImageDataSize(size_t ExpectedSize); + bool operator<(gdcmHeader &header); + protected: int write(std::ostream&); int anonymize(std::ostream&); // FIXME : anonymize should be a friend ? private: + }; //-----------------------------------------------------------------------------