- * \brief Return the value of the DataEntry if it's "std::string representable"
- * @param group Group number of the searched tag.
- * @param elem Element number of the searched tag.
- * @return Corresponding element value when it's "std::string representable"
- * and the string GDCM_NOTASCII otherwise.
- */
-std::string DocEntrySet::GetEntryForcedAsciiValue(uint16_t group, uint16_t elem)
-{
- DocEntry *d = GetDocEntry(group,elem);
- if ( !d )
- return GDCM_UNFOUND;
-
- DataEntry *de = dynamic_cast<DataEntry *>(d);
- if ( de )
- {
- if( de->IsNotLoaded() )
- return GDCM_NOTLOADED;
- if( de->IsUnfound() )
- return GDCM_UNFOUND;
- if( de->IsUnread() )
- return GDCM_UNREAD;
- }
-
- if( Global::GetVR()->IsVROfStringRepresentable( de->GetVR() ) )
- return de->GetString();
- else
- {
- uint8_t *a = de->GetBinArea();
- if( Util::IsCleanArea(a, de->GetLength()) )
- return Util::CreateCleanString(a, de->GetLength());
- }
- return GDCM_NOTASCII;
-}
-
-/**
- * \brief Searches within Header Entries (Dicom Elements) parsed with
- * the public and private dictionaries