X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictSet.h;h=2c480fff5971b89aafb541324273b2cc40fb4539;hb=ccc795ae220f0d14496d0ef2473f66d8eae48c7a;hp=1fee82f95158b3c06f0559db18b292c5b79751ab;hpb=06c1c583239fdf5196260e6ef83a78669c1bd17f;p=gdcm.git diff --git a/src/gdcmDictSet.h b/src/gdcmDictSet.h index 1fee82f9..2c480fff 100644 --- a/src/gdcmDictSet.h +++ b/src/gdcmDictSet.h @@ -28,30 +28,37 @@ public: // TODO Swig int LoadDictFromName(std::string filename); // TODO Swig int LoadAllDictFromDirectory(std::string DirectoryName); // TODO Swig std::string* GetAllDictNames(); - gdcmDictSet(void); - ~gdcmDictSet(void); + gdcmDictSet(void); + ~gdcmDictSet(void); - void Print(std::ostream& os); + void Print(std::ostream& os); - std::list * GetPubDictTagNames(void); - std::map >* - GetPubDictTagNamesByCategory(void); + std::list *GetPubDictEntryNames(void); + std::map > * + GetPubDictEntryNamesByCategory(void); - void LoadDictFromFile(std::string FileName, DictKey Name); + gdcmDict *LoadDictFromFile(std::string FileName, DictKey Name); - gdcmDict* GetDict(DictKey DictName); - gdcmDict* GetDefaultPubDict(void); + gdcmDict *GetDict(DictKey DictName); + gdcmDict *GetDefaultPubDict(void); + + gdcmDictEntry *NewVirtualDictEntry(guint16 group, guint16 element, + std::string vr = "Unknown", + std::string fourth = "Unknown", + std::string name = "Unknown"); static std::string BuildDictPath(void); protected: - bool AppendDict(gdcmDict* NewDict,DictKey Name); + bool AppendDict(gdcmDict *NewDict,DictKey Name); private: /// Hash table of all dictionaries contained in this gdcmDictSet - DictSetHT Dicts; + DictSetHT Dicts; /// Directory path to dictionaries std::string DictPath; + /// H table for the on the fly created gdcmDictEntries + std::map virtualEntry; }; //-----------------------------------------------------------------------------