Esempio n. 1
0
    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
Esempio n. 2
0
 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
Esempio n. 3
0
 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
Esempio n. 4
0
 void TiffComponent::accept(TiffVisitor& visitor)
 {
     if (visitor.go()) doAccept(visitor);    // one for NVI :)
 } // TiffComponent::accept
Esempio n. 5
0
 void TiffIfdMakernote::doAccept(TiffVisitor& visitor)
 {
     if (visitor.go()) visitor.visitIfdMakernote(this);
     ifd_.accept(visitor);
     if (visitor.go()) visitor.visitIfdMakernoteEnd(this);
 }