2 //-----------------------------------------------------------------------------
10 typedef std::string DictKey;
11 typedef std::map<DictKey, gdcmDict*> DictSetHT;
13 //-----------------------------------------------------------------------------
15 * \defgroup gdcmDictSet
16 * \brief Container for managing a set of loaded dictionaries.
17 * \note Hopefully, sharing dictionaries should avoid
18 * \par reloading an already loaded dictionary (saving time)
19 * \par having many in memory representations of the same dictionary
22 class GDCM_EXPORT gdcmDictSet {
24 // TODO Swig int LoadDictFromFile(std::string filename);
25 // QUESTION: the following function might not be thread safe !? Maybe
26 // we need some mutex here, to avoid concurent creation of
27 // the same dictionary !?!?!
28 // TODO Swig int LoadDictFromName(std::string filename);
29 // TODO Swig int LoadAllDictFromDirectory(std::string DirectoryName);
30 // TODO Swig std::string* GetAllDictNames();
34 void Print(std::ostream& os);
36 std::list<std::string> *GetPubDictEntryNames(void);
37 std::map<std::string, std::list<std::string> > *
38 GetPubDictEntryNamesByCategory(void);
40 gdcmDict *LoadDictFromFile(std::string FileName, DictKey Name);
42 gdcmDict *GetDict(DictKey DictName);
43 gdcmDict *GetDefaultPubDict(void);
45 gdcmDictEntry *NewVirtualDictEntry(guint16 group, guint16 element,
46 std::string vr = "Unknown",
47 std::string fourth = "Unknown",
48 std::string name = "Unknown");
50 static std::string BuildDictPath(void);
53 bool AppendDict(gdcmDict *NewDict,DictKey Name);
56 /// Hash table of all dictionaries contained in this gdcmDictSet
58 /// Directory path to dictionaries
60 /// H table for the on the fly created gdcmDictEntries
61 std::map<std::string,gdcmDictEntry *> virtualEntry;
64 //-----------------------------------------------------------------------------