-/**
- * \ingroup gdcmParser
- * \brief Sets Entry (Dicom Element) value of an element,
- * specified by it's tag (Group, Number)
- * and the length, too ...
- * @param val string value to set
- * @param group Group of the searched tag.
- * @param element Element of the searched tag.
- * @return true if element was found, else false
- */
- bool gdcmObject::SetEntryByNumber(std::string val,guint16 group,
- guint16 element) {
-
- //for(ListTag::iterator i=beginObj;i!=endObj;++i) // JPR
- for(ListTag::iterator i=beginObj;;++i) {
- if ( (*i)->GetGroup()==group && (*i)->GetElement()==element) {
- (*i)->SetValue(val);
- (*i)->SetLength(val.length()+1);
- return true;
- }
- if (i == endObj) break;
- }
- return false;
-}