Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

gdcmDictSet.h

Go to the documentation of this file.
00001 /*=========================================================================
00002                                                                                 
00003   Program:   gdcm
00004   Module:    $RCSfile: gdcmDictSet.h,v $
00005   Language:  C++
00006   Date:      $Date: 2005/02/06 14:43:27 $
00007   Version:   $Revision: 1.42 $
00008                                                                                 
00009   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
00010   l'Image). All rights reserved. See Doc/License.txt or
00011   http://www.creatis.insa-lyon.fr/Public/Gdcm/License.html for details.
00012                                                                                 
00013      This software is distributed WITHOUT ANY WARRANTY; without even
00014      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00015      PURPOSE.  See the above copyright notices for more information.
00016                                                                                 
00017 =========================================================================*/
00018 
00019 #ifndef GDCMDICTSET_H
00020 #define GDCMDICTSET_H
00021 
00022 #include "gdcmBase.h"
00023 #include "gdcmDict.h"
00024 
00025 #include <map>
00026 #include <list>
00027 
00028 namespace gdcm 
00029 {
00030 typedef std::map<DictKey, Dict*> DictSetHT;
00031 
00032 //-----------------------------------------------------------------------------
00040 class GDCM_EXPORT DictSet : public Base
00041 {
00042 public:
00043    DictSet();
00044    ~DictSet();
00045 
00046    void Print(std::ostream &os = std::cout, std::string const &indent = "" );
00047 
00048    // Probabely useless !
00049    //EntryNamesList *GetPubDictEntryNames();
00050    //EntryNamesByCatMap *GetPubDictEntryNamesByCategory();
00051 
00052    Dict *LoadDictFromFile( std::string const &fileName,
00053                            DictKey const &name );
00054 
00055    Dict *GetDict( DictKey const &DictName );
00056 
00058    Dict* GetDefaultPubDict() { return GetDict(PUB_DICT_NAME); };
00059 
00060    // \brief   Retrieve the virtual reference DICOM dictionary.
00061    // \warning : not end user intended
00062    // Dict *GetVirtualDict() { return &VirtualEntry; };
00063 
00064    DictEntry *NewVirtualDictEntry(uint16_t group, uint16_t elem,
00065                                   TagName vr     = GDCM_UNKNOWN,
00066                                   TagName vm     = GDCM_UNKNOWN,
00067                                   TagName name   = GDCM_UNKNOWN);
00068 
00069    Dict *GetFirstEntry();
00070    Dict *GetNextEntry();
00071 
00072    static std::string BuildDictPath();
00073 
00074 protected:
00075    bool AppendDict(Dict *NewDict, DictKey const &name);
00076 
00077 private:
00079    DictSetHT Dicts;
00080    DictSetHT::iterator ItDictHt;
00081 
00083    std::string DictPath;
00084 
00086    TagKeyHT VirtualEntry; 
00087 };
00088 } // end namespace gdcm
00089 
00090 //-----------------------------------------------------------------------------
00091 #endif

Generated on Thu Feb 10 22:17:57 2005 for gdcm by doxygen 1.3.6