X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.h;h=3051124132dea94e2acc68cbc3728386e3bbd39b;hb=9b3db5f141ec2b11eadefaa2ea2a3a20058b37f9;hp=1859192261b322966aaab4c4189366ff1b06494e;hpb=cb1d677309aa36b813f8be51cdc753a7d70c492e;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index 18591922..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)); }