6 gdcmDictSet::gdcmDictSet(void) {
7 if (! LoadDicomV3Dict())
11 int gdcmDictSet::LoadDicomV3Dict(void) {
12 if (dicts.count(PUBDICTNAME))
14 return LoadDictFromFile(PUBDICTFILENAME, PUBDICTNAME);
17 int gdcmDictSet::LoadDictFromFile(char * FileName, DictKey Name) {
18 gdcmDict *NewDict = new gdcmDict(FileName);
19 dicts[Name] = NewDict;
22 void gdcmDictSet::Print(ostream& os) {
23 for (DictSetHT::iterator dict = dicts.begin(); dict != dicts.end(); ++dict){
24 os << "Printing dictionary " << dict->first << " \n";
25 dict->second->Print(os);
29 gdcmDict * gdcmDictSet::GetDict(DictKey DictName) {
30 DictSetHT::iterator dict = dicts.find(DictName);
34 gdcmDict * gdcmDictSet::GetDefaultPublicDict() {
35 return GetDict(PUBDICTNAME);