X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmParser.h;h=74db3d233c6fd53d53f5360a01ef42217fbdb442;hb=a547ed6d41e444153f4bea38c47810fe7f50d88e;hp=cf2cc9470c349f893c003850f03f0278294ab6a3;hpb=8d4184fc7129f85d9ec384a3c7b9c5928a1f5b5e;p=gdcm.git diff --git a/src/gdcmParser.h b/src/gdcmParser.h index cf2cc947..74db3d23 100644 --- a/src/gdcmParser.h +++ b/src/gdcmParser.h @@ -139,6 +139,7 @@ protected: static const unsigned int HEADER_LENGTH_TO_READ; static const unsigned int MAX_SIZE_LOAD_ELEMENT_VALUE; + static const unsigned int MAX_SIZE_PRINT_ELEMENT_VALUE; protected: int enableSequences; @@ -149,7 +150,7 @@ protected: private: // Read - void Parse(bool exception_on_error = false) throw(gdcmFormatError); + bool ParseHeader(bool exception_on_error = false) throw(gdcmFormatError); void LoadHeaderEntries (void); void LoadHeaderEntry (gdcmHeaderEntry *); @@ -172,9 +173,10 @@ private: void SkipBytes(guint32); void Initialise(void); - void CheckSwap(void); + bool CheckSwap(void); void SwitchSwapToBigEndian(void); void SetMaxSizeLoadEntry(long); + void SetMaxSizePrintEntry(long); // DictEntry related utilities gdcmDictEntry *GetDictEntryByName (std::string Name); @@ -193,9 +195,9 @@ private: gdcmHeaderEntry *NewHeaderEntryByName (std::string Name); - // Deprecated (Not used) - gdcmHeaderEntry *NewManualHeaderEntryToPubDict(std::string NewTagName, - std::string VR); + // Deprecated (Not used) --> commented out + //gdcmHeaderEntry *NewManualHeaderEntryToPubDict(std::string NewTagName, + // std::string VR); guint32 GenerateFreeTagKeyInGroup(guint16 group); // Refering underlying filename. @@ -221,6 +223,11 @@ private: // this upper bound is fixed to 1024 bytes (which might look reasonable // when one considers the definition of the various VR contents). guint32 MaxSizeLoadEntry; + // Size treshold above which an element value will NOT be *printed* in + // order no to polute the screen output. By default, + // this upper bound is fixed to 64 bytes. + guint32 MaxSizePrintEntry; + }; //-----------------------------------------------------------------------------