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

Method printStructure

src/orfimage.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void OrfImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
55 out << "ORF IMAGE" << std::endl;
56 if (io_->open() != 0)
57 throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
58 // Ensure that this is the correct image type
59 if (imageType() == ImageType::none && !isOrfType(*io_, false)) {
60 if (io_->error() || io_->eof())
61 throw Error(ErrorCode::kerFailedToReadImageData);
62 throw Error(ErrorCode::kerNotAJpeg);
63 }
64
65 io_->seek(0, BasicIo::beg);
66
67 printTiffStructure(io(), out, option, depth);
68} // OrfImage::printStructure
69
70void OrfImage::readMetadata() {
71#ifdef EXIV2_DEBUG_MESSAGES

Callers

nothing calls this directly

Calls 8

ErrorFunction · 0.85
strErrorFunction · 0.85
imageTypeFunction · 0.85
isOrfTypeFunction · 0.85
eofMethod · 0.80
seekMethod · 0.80
openMethod · 0.45
errorMethod · 0.45

Tested by

no test coverage detected