void TiffDirectory::doAccept(TiffVisitor& visitor) { visitor.visitDirectory(this); Components::const_iterator b = components_.begin(); Components::const_iterator e = components_.end(); for (Components::const_iterator i = b; visitor.go() && i != e; ++i) { (*i)->accept(visitor); } if (visitor.go()) visitor.visitDirectoryNext(this); if (pNext_) pNext_->accept(visitor); if (visitor.go()) visitor.visitDirectoryEnd(this); } // TiffDirectory::doAccept
void TiffArrayEntry::doAccept(TiffVisitor& visitor) { visitor.visitArrayEntry(this); Components::const_iterator b = elements_.begin(); Components::const_iterator e = elements_.end(); for (Components::const_iterator i = b; visitor.go() && i != e; ++i) { (*i)->accept(visitor); } } // TiffArrayEntry::doAccept
void TiffMnEntry::doAccept(TiffVisitor& visitor) { visitor.visitMnEntry(this); if (mn_) mn_->accept(visitor); if (!visitor.go()) { delete mn_; mn_ = 0; visitor.setGo(true); } } // TiffMnEntry::doAccept
void TiffComponent::accept(TiffVisitor& visitor) { if (visitor.go()) doAccept(visitor); // one for NVI :) } // TiffComponent::accept
void TiffIfdMakernote::doAccept(TiffVisitor& visitor) { if (visitor.go()) visitor.visitIfdMakernote(this); ifd_.accept(visitor); if (visitor.go()) visitor.visitIfdMakernoteEnd(this); }