48 if (!block.hasProperty(treeProperty_))
49 throw Exception(
"OutputTreeAlignmentMafIterator::writeBlock. No property available for " + treeProperty_);
51 const Tree& tree =
dynamic_cast<const Tree&
>(block.getProperty(treeProperty_));
52 writer_.write(tree, out);
53 }
catch (bad_cast& e) {
54 throw Exception(
"OutputTreeAlignmentMafIterator::writeBlock. A property was found for '" + treeProperty_ +
"' but does not appear to contain a phylogenetic tree.");
void writeBlock(std::ostream &out, const MafBlock &block) const