Packets: Add descriptive dump() output to DataPacket
[senf.git] / Packets / PacketInterpreter.cti
index 08e3395..f542015 100644 (file)
 template <class Type>
 prefix_ bool senf::PacketInterpreterBase::is()
 {
+    { static void const * const _ ((void*)&Type::dump); (void) _; }
     return dynamic_cast< PacketInterpreter<Type>* >(this);
 }
 
 template <class Type>
 prefix_ typename senf::PacketInterpreter<Type>::ptr senf::PacketInterpreterBase::as()
 {
+    { static void const * const _ ((void*)&Type::dump); (void) _; }
     return typename PacketInterpreter<Type>::ptr(
         static_cast< PacketInterpreter<Type>* >(this));
 }
 
+template <class Annotation>
+prefix_ Annotation & senf::PacketInterpreterBase::annotation()
+{
+    return impl().annotation<Annotation>();
+}
+
 ///////////////////////////////////////////////////////////////////////////
 // senf::PacketInterpreter<PacketType>