MCPcopy Create free account
hub / github.com/Exiv2/exiv2 / writeMetadata

Method writeMetadata

src/psdimage.cpp:314–325  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

312} // PsdImage::readResourceBlock
313
314void PsdImage::writeMetadata() {
315 if (io_->open() != 0) {
316 throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
317 }
318 IoCloser closer(*io_);
319 MemIo tempIo;
320
321 doWriteMetadata(tempIo); // may throw
322 io_->close();
323 io_->transfer(tempIo); // may throw
324
325} // PsdImage::writeMetadata
326
327void PsdImage::doWriteMetadata(BasicIo& outIo) {
328 if (!io_->isopen())

Callers

nothing calls this directly

Calls 5

ErrorFunction · 0.85
strErrorFunction · 0.85
closeMethod · 0.80
transferMethod · 0.80
openMethod · 0.45

Tested by

no test coverage detected