{
if (next())
impl().truncateInterpreters(next().get());
-
+
optional_range r (nextPacketRange());
if (!r)
throw InvalidPacketChainException();
-
+
ptr rv (packet->appendClone(&impl(), *r));
rv->data().resize(packet->data().size());
std::copy(packet->data().begin(), packet->data().end(), rv->data().begin());
prefix_ void senf::PacketInterpreterBase::dump(std::ostream & os)
{
try {
- if (detail::AnnotationIndexerBase::maxAnnotations > 0) {
+ if (detail::AnnotationRegistry::instance().begin()
+ != detail::AnnotationRegistry::instance().end()) {
os << "Annotations:\n";
impl().dumpAnnotations(os);
}