X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDict.h;h=316f7ccdea9867e8fe03e9f616a5a53cf847d5c3;hb=4117dec671b980b51a16117a5692d822b63bbe04;hp=56db9453a880ead7dc8d3b0d7a692120b3dfc152;hpb=25c9af365d9221bd45f3fbe27275ff0f66a265b1;p=gdcm.git diff --git a/src/gdcmDict.h b/src/gdcmDict.h index 56db9453..316f7ccd 100644 --- a/src/gdcmDict.h +++ b/src/gdcmDict.h @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDict.h,v $ Language: C++ - Date: $Date: 2005/02/07 09:51:03 $ - Version: $Revision: 1.38 $ + Date: $Date: 2005/09/03 18:24:10 $ + Version: $Revision: 1.41 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -23,6 +23,7 @@ #include "gdcmDictEntry.h" #include +#include // for ifstream #include #include @@ -49,6 +50,8 @@ public: Dict(std::string const &filename); ~Dict(); + bool AddDict(std::string const &filename); + bool RemoveDict(std::string const &filename); // Print void Print(std::ostream &os = std::cout, std::string const &indent = ""); @@ -61,11 +64,14 @@ public: // Tag DictEntry *GetEntry(uint16_t group, uint16_t elem); + DictEntry *GetEntry(TagKey const &key); DictEntry *GetFirstEntry(); DictEntry *GetNextEntry(); private: + void DoTheLoadingJob(std::ifstream &ifs); + /// ASCII file holding the Dictionnary std::string Filename;