X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.h;h=08b5388b5636efcb35fd8e927dd0b56f920b8b5d;hb=7b8dcad5fbb9b248952ad6819ef984e7880ef81e;hp=1ddff5a0b1de7542a642716a93228ce19240fbb8;hpb=bafdfafe6c1b30607035fc4018c0405169b348e8;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 1ddff5a0..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,29 +81,39 @@ 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(); } // 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: + }; //-----------------------------------------------------------------------------