X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmHeader.h;h=3051124132dea94e2acc68cbc3728386e3bbd39b;hb=c38654db595b51f0295f607c51172dae56d1d65d;hp=1e1e52091e0042f80161d2ee16fd355df793c24e;hpb=a547ed6d41e444153f4bea38c47810fe7f50d88e;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 1e1e5209..30511241 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -79,21 +79,43 @@ public: // TODO Swig int SetShaDict(std::string filename); // TODO Swig int SetPubDict(std::string filename); + +// System access +/** + * \ingroup gdcmHeader + * \brief the Header Entry Group Number of the 'Pixel Group' + * is not allways 0x7fe0 + * @return GrPixel + */ + guint16 GetGrPixel(void) {return GrPixel;} +/** + * \ingroup gdcmHeader + * \brief the Header Entry Element Number of the 'Pixel Element' + * is not allways 0x0010 + * @return NumPixel + */ + guint16 GetNumPixel(void) {return NumPixel;} // Entry 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 int GetEntryLengthByNumber(guint16 group, guint16 element) + { return(gdcmParser::GetEntryLengthByNumber(group,element)); } + 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)); } @@ -106,11 +128,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 ? - + bool anonymizeHeader(void); private: + }; //-----------------------------------------------------------------------------