Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | 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/11/28 16:31:23 $
00007   Version:   $Revision: 1.52 $
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 "gdcmRefCounter.h"
00023 #include "gdcmDict.h"
00024 
00025 #include <map>
00026 #include <list>
00027 
00028 namespace gdcm 
00029 {
00030 //-----------------------------------------------------------------------------
00031 typedef std::map<DictKey, Dict*> DictSetHT;
00032 
00033 //-----------------------------------------------------------------------------
00041 class GDCM_EXPORT DictSet : public RefCounter
00042 {
00043    gdcmTypeMacro(DictSet);
00044 
00045 public:
00047    static DictSet *New() {return new DictSet();}
00048 
00049    void Print(std::ostream &os = std::cout, std::string const &indent = "" );
00050 
00051    // Probabely useless !
00052    //EntryNamesList *GetPubDictEntryNames();
00053    //EntryNamesByCatMap *GetPubDictEntryNamesByCategory();
00054 
00055    Dict *LoadDictFromFile( std::string const &fileName,
00056                            DictKey const &name );
00057 
00058    Dict *GetDict( DictKey const &DictName );
00059 
00061    Dict* GetDefaultPubDict() { return GetDict(PUB_DICT_NAME); }
00062 
00063    // \ brief   Returns the virtual references DICOM dictionary.
00064    // \ warning : not end user intended
00065    // Dict *GetVirtualDict() { return &VirtualEntries; }
00066 
00067    Dict *GetFirstDict();
00068    Dict *GetNextDict();
00069 
00070    static std::string BuildDictPath();
00071 
00072 protected:
00073    DictSet();
00074    ~DictSet();
00075 
00076 private:
00078    DictSetHT Dicts;
00080    DictSetHT::iterator ItDictHt;
00081 
00083    std::string DictPath;
00084 };
00085 } // end namespace gdcm
00086 
00087 //-----------------------------------------------------------------------------
00088 #endif

Generated on Fri Jan 20 10:14:24 2006 for gdcm by  doxygen 1.4.4