| 183 | } |
| 184 | |
| 185 | void BlobNodeImpl::writeXml( ImageFileImplSharedPtr /*imf*/, CheckedFile &cf, int indent, |
| 186 | const char *forcedFieldName ) |
| 187 | { |
| 188 | // don't checkImageFileOpen |
| 189 | |
| 190 | ustring fieldName; |
| 191 | if ( forcedFieldName != nullptr ) |
| 192 | { |
| 193 | fieldName = forcedFieldName; |
| 194 | } |
| 195 | else |
| 196 | { |
| 197 | fieldName = elementName_; |
| 198 | } |
| 199 | |
| 200 | //??? need to implement |
| 201 | //??? Type --> type |
| 202 | //??? need to have length?, check same as in section header? |
| 203 | uint64_t physicalOffset = cf.logicalToPhysical( binarySectionLogicalStart_ ); |
| 204 | cf << space( indent ) << "<" << fieldName << " type=\"Blob\" fileOffset=\"" << physicalOffset |
| 205 | << "\" length=\"" << blobLogicalLength_ << "\"/>\n"; |
| 206 | } |
| 207 | |
| 208 | #ifdef E57_ENABLE_DIAGNOSTIC_OUTPUT |
| 209 | void BlobNodeImpl::dump( int indent, std::ostream &os ) const |
no test coverage detected