X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.h;h=7c486e83ff73f4f51cde6eddf92467db5742a200;hb=27c61aa23c3f02def28d44dca855e54d9adb25a1;hp=d5cc86b642209219860cba93749775404821a87a;hpb=d3e997d981d84fece924c52c8b513bccc6cd371a;p=gdcm.git diff --git a/src/gdcmHeader.h b/src/gdcmHeader.h index d5cc86b6..7c486e83 100644 --- a/src/gdcmHeader.h +++ b/src/gdcmHeader.h @@ -33,7 +33,8 @@ 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(); @@ -50,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); @@ -80,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(); } @@ -105,6 +111,7 @@ protected: int anonymize(std::ostream&); // FIXME : anonymize should be a friend ? private: + }; //-----------------------------------------------------------------------------