2 //-----------------------------------------------------------------------------
3 #include "gdcmObject.h"
8 gdcmObject::gdcmObject() {
13 gdcmObject::~gdcmObject() {
18 std::string gdcmObject::GetEntryByNumber(guint16 group, guint16 element) {
20 ListTag::iterator deb , fin;
24 ListTag::iterator i=deb;
26 if (deb == fin) cout << "Big Trouble : Empty List!" <<endl;
28 gr = (*(*i)).GetGroup();
29 el = (*(*i)).GetElement();
30 if ( gr==group && el==element)
31 return (*(*i)).GetValue();;
38 std::string gdcmObject::GetEntryByName(TagName name) {
39 gdcmDict *PubDict=gdcmGlobal::GetDicts()->GetDefaultPubDict();
40 gdcmDictEntry *dictEntry = (*PubDict).GetDictEntryByName(name);
41 if( dictEntry == NULL)
43 return GetEntryByNumber(dictEntry->GetGroup(),dictEntry->GetElement());