X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDict.h;h=9931f7bcab26a123c54d07c08c1f7bd776cf3178;hb=967978854b861e9b06fbd89b93e77d9ed984cce2;hp=66f0df52ed2207d1a0cefe565150beb13e813353;hpb=5285811a83dcd08d4e9364c74ebe1b163688f5bb;p=gdcm.git diff --git a/src/gdcmDict.h b/src/gdcmDict.h index 66f0df52..9931f7bc 100644 --- a/src/gdcmDict.h +++ b/src/gdcmDict.h @@ -1,5 +1,21 @@ -// gdcmDict.h -//----------------------------------------------------------------------------- +/*========================================================================= + + Program: gdcm + Module: $RCSfile: gdcmDict.h,v $ + Language: C++ + Date: $Date: 2004/06/20 18:08:47 $ + Version: $Revision: 1.15 $ + + Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de + l'Image). All rights reserved. See Doc/License.txt or + http://www.creatis.insa-lyon.fr/Public/Gdcm/License.htm for details. + + This software is distributed WITHOUT ANY WARRANTY; without even + the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the above copyright notices for more information. + +=========================================================================*/ + #ifndef GDCMDICT_H #define GDCMDICT_H @@ -28,22 +44,22 @@ typedef std::map TagNameHT; class GDCM_EXPORT gdcmDict { public: gdcmDict(std::string & FileName); - ~gdcmDict(); + ~gdcmDict(); // Print - void Print(std::ostream &os = std::cout); - void PrintByKey(std::ostream &os = std::cout); - void PrintByName(std::ostream &os = std::cout); + void Print(std::ostream &os = std::cout); + void PrintByKey(std::ostream &os = std::cout); + void PrintByName(std::ostream &os = std::cout); // Entries bool AddNewEntry (gdcmDictEntry *NewEntry); - bool ReplaceEntry(gdcmDictEntry *NewEntry); - bool RemoveEntry (TagKey key); - bool RemoveEntry (guint16 group, guint16 element); - + bool ReplaceEntry(gdcmDictEntry *NewEntry); + bool RemoveEntry (TagKey key); + bool RemoveEntry (guint16 group, guint16 element); + // Tag - gdcmDictEntry *GetDictEntryByName(TagName name); - gdcmDictEntry *GetDictEntryByNumber(guint16 group, guint16 element); + gdcmDictEntry *GetDictEntryByName(TagName name); + gdcmDictEntry *GetDictEntryByNumber(guint16 group, guint16 element); std::list *GetDictEntryNames(void); std::map > * @@ -67,9 +83,9 @@ private: /// ASCII file holding the Dictionnary std::string filename; /// Access through TagKey (see alternate access with NameHt) - TagKeyHT KeyHt; + TagKeyHT KeyHt; /// Access through TagName (see alternate access with KeyHt) - TagNameHT NameHt; + TagNameHT NameHt; }; //-----------------------------------------------------------------------------