10 typedef std::string DictKey;
11 typedef std::map<DictKey, gdcmDict*> DictSetHT;
14 * \defgroup gdcmDictSet
15 * \brief Container for managing a set of loaded dictionaries.
16 * \note Hopefully, sharing dictionaries should avoid
17 * \par reloading an already loaded dictionary (saving time)
18 * \par having many in memory representations of the same dictionary
21 class GDCM_EXPORT gdcmDictSet {
23 /// Hash table of all dictionaries contained in this gdcmDictSet
25 /// Directory path to dictionaries
28 int AppendDict(gdcmDict* NewDict);
29 void LoadDictFromFile(std::string FileName, DictKey Name);
30 std::string BuildDictPath(void);
33 std::list<std::string> * GetPubDictTagNames(void);
34 std::map<std::string, std::list<std::string> >*
35 GetPubDictTagNamesByCategory(void);
37 // TODO Swig int LoadDictFromFile(std::string filename);
38 // QUESTION: the following function might not be thread safe !? Maybe
39 // we need some mutex here, to avoid concurent creation of
40 // the same dictionary !?!?!
41 // TODO Swig int LoadDictFromName(std::string filename);
42 // TODO Swig int LoadAllDictFromDirectory(std::string DirectoryName);
43 // TODO Swig std::string* GetAllDictNames();
46 void Print(std::ostream& os);
48 gdcmDict* GetDict(DictKey DictName);
49 gdcmDict* GetDefaultPubDict(void);