X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.hh;h=8cff10857a46c82e42f7a77eea63618064f50500;hb=1a02a61e1e1515dca27577013cc7300ea5133fd5;hp=d3b42a402eefb6e8bcb356cd25bcd266dd77afe4;hpb=f52075dad8b8291570fa2c61ef9b5ec0a04d1e5e;p=senf.git diff --git a/Packets/Packet.hh b/Packets/Packet.hh index d3b42a4..8cff108 100644 --- a/Packets/Packet.hh +++ b/Packets/Packet.hh @@ -376,6 +376,10 @@ namespace senf { ///@} + template + Annotation const & annotation() const; ///< Get packet annotation + /**< \see annotation() */ + ///\name Other methods ///@{ @@ -728,6 +732,15 @@ namespace senf { friend class PacketInterpreter; }; + /** \brief Generic parser copying + + This operator allows to copy the value of identical parsers. This operation does \e not + depend on the parsers detailed implementation, it will just replace the data bytes of the + target parser with those from the source packet. + */ + template + Parser operator<<(Parser target, ConcretePacket const & packet); + ///@} }