X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocument.h;h=7c2ef447404ac2fd449a0237b733751c85d2aa42;hb=62fd402e1fc63c4928ab86195dd66208b072dadb;hp=24e1cd2ef666bd9b124abfaae6d2c6f89066ad06;hpb=ab62b1a706df8e2ab1fbf26fa5037d6c22293655;p=gdcm.git diff --git a/src/gdcmDocument.h b/src/gdcmDocument.h index 24e1cd2e..7c2ef447 100644 --- a/src/gdcmDocument.h +++ b/src/gdcmDocument.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.h,v $ Language: C++ - Date: $Date: 2004/08/02 16:42:14 $ - Version: $Revision: 1.30 $ + Date: $Date: 2004/09/14 16:47:08 $ + Version: $Revision: 1.36 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -50,10 +50,6 @@ private: /// \brief Optional "shadow dictionary" (private elements) used to parse /// this header gdcmDict *RefShaDict; - - /// \brief Equals =1 if user wants to skip shadow groups while parsing - /// (to save space) - int IgnoreShadow; /// \brief Size threshold above which an element value will NOT be loaded /// in memory (to avoid loading the image/volume itself). By default, @@ -139,8 +135,15 @@ public: gdcmValEntry* ReplaceOrCreateByNumber(std::string const & value, uint16_t group, uint16_t elem); + gdcmValEntry* ReplaceOrCreateByNumber(std::string const & value, + uint16_t group, uint16_t elem, + std::string const & VR); + gdcmBinEntry* ReplaceOrCreateByNumber(void *voidArea, int lgth, uint16_t group, uint16_t elem); + + gdcmSeqEntry* ReplaceOrCreateByNumber(uint16_t group, uint16_t elem); + bool ReplaceIfExistByNumber ( std::string const & value, uint16_t group, uint16_t elem ); @@ -164,14 +167,14 @@ protected: void Parse7FE0 (); // Entry - int CheckIfEntryExistByNumber(uint16_t group, uint16_t elem ); // int ! + bool CheckIfEntryExistByNumber(uint16_t group, uint16_t elem ); public: virtual std::string GetEntryByName (TagName const & tagName); virtual std::string GetEntryVRByName (TagName const & tagName); virtual std::string GetEntryByNumber (uint16_t group, uint16_t elem); virtual std::string GetEntryVRByNumber(uint16_t group, uint16_t elem); virtual int GetEntryLengthByNumber(uint16_t group, uint16_t elem); -protected: +//protected: virtual bool SetEntryByName (std::string const & content, std::string const & tagName); virtual bool SetEntryByNumber(std::string const & content, @@ -199,8 +202,8 @@ protected: private: // Read - long ParseDES(gdcmDocEntrySet *set, long offset, long l_max,bool delim_mode); - long ParseSQ (gdcmSeqEntry *seq, long offset, long l_max, bool delim_mode); + long ParseDES(gdcmDocEntrySet *set,long offset, long l_max, bool delim_mode); + long ParseSQ (gdcmSeqEntry *seq, long offset, long l_max, bool delim_mode); void LoadDocEntry (gdcmDocEntry *); void FindDocEntryLength(gdcmDocEntry *) throw ( gdcmFormatError ); @@ -237,7 +240,7 @@ private: public: // Accessors: - /// Accessor to \ref printLevel + /// Accessor to \ref PrintLevel void SetPrintLevel(int level) { PrintLevel = level; } /// Accessor to \ref Filename @@ -246,7 +249,7 @@ public: /// Accessor to \ref Filename void SetFileName(std::string const & fileName) { Filename = fileName; } - /// 'Swap code' accessor (see \ref sw ) + /// 'Swap code' accessor (see \ref SwapCode ) int GetSwapCode() { return SwapCode; } /// File pointer