| 119 | } |
| 120 | |
| 121 | std::string ReadPrivateString(DcmDataset* dataset, Uint16 group, |
| 122 | const char* creator, Uint16 elementOffset) |
| 123 | { |
| 124 | const Uint16 base = FindPrivateCreatorOffset(dataset, group, creator); |
| 125 | if (0xFFFF == base) return {}; |
| 126 | OFString value; |
| 127 | if (dataset->findAndGetOFString( |
| 128 | DcmTagKey(group, static_cast<Uint16>(base | elementOffset)), value).good()) |
| 129 | { |
| 130 | return std::string(value.c_str()); |
| 131 | } |
| 132 | return {}; |
| 133 | } |
| 134 | |
| 135 | // Per-frame lift: open each file in the frame list once, extract the |
| 136 | // requested private element, and build a DICOMCachedValueLookupTable |
no test coverage detected