X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=src%2FgdcmDictSet.cxx;h=518eb728deebc892d337aa7d1ef36aa6d573c582;hb=b26e20f5faabeaebef8992f5a364fa1d5561bd08;hp=82962d6e677c05291a608b1b4fa82d0f1f4203e9;hpb=1e74cf45bc96f14c342cc404f0f91dfffe0810b9;p=gdcm.git diff --git a/src/gdcmDictSet.cxx b/src/gdcmDictSet.cxx index 82962d6e..518eb728 100644 --- a/src/gdcmDictSet.cxx +++ b/src/gdcmDictSet.cxx @@ -78,9 +78,9 @@ void gdcmDictSet::Print(std::ostream& os) * \sa gdcmDictSet::GetPubDictTagNamesByCategory * @return A list of all entries of the public dicom dictionnary. */ -std::list *gdcmDictSet::GetPubDictTagNames(void) +std::list *gdcmDictSet::GetPubDictEntryNames(void) { - return(GetDefaultPubDict()->GetTagNames()); + return(GetDefaultPubDict()->GetDictEntryNames()); } /** @@ -107,9 +107,9 @@ std::list *gdcmDictSet::GetPubDictTagNames(void) * corresponding values are lists of all the dictionnary entries * among that group. */ -std::map > *gdcmDictSet::GetPubDictTagNamesByCategory(void) +std::map > *gdcmDictSet::GetPubDictEntryNamesByCategory(void) { - return(GetDefaultPubDict()->GetTagNamesByCategory()); + return(GetDefaultPubDict()->GetDictEntryNamesByCategory()); } /** @@ -121,10 +121,11 @@ std::map > *gdcmDictSet::GetPubDictTagNamesB * @param Name Symbolic name that be used as identifier of the newly * created dictionary. */ -void gdcmDictSet::LoadDictFromFile(std::string FileName, DictKey Name) +gdcmDict *gdcmDictSet::LoadDictFromFile(std::string FileName, DictKey Name) { gdcmDict *NewDict = new gdcmDict(FileName); AppendDict(NewDict,Name); + return(NewDict); } /** @@ -163,7 +164,7 @@ gdcmDictEntry *gdcmDictSet::NewVirtualDictEntry(guint16 group, guint16 element, std::string name) { gdcmDictEntry *entry; - std::string tag=gdcmDictEntry::TranslateToKey(group,element)+vr; + std::string tag=gdcmDictEntry::TranslateToKey(group,element)+"#"+vr+"#"+fourth+"#"+name; std::map::iterator it; it=virtualEntry.find(tag);