X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FPacket.hh;h=8cff10857a46c82e42f7a77eea63618064f50500;hb=1a02a61e1e1515dca27577013cc7300ea5133fd5;hp=4a25789f1ab03e5af69997261e913e8dbf4fc433;hpb=bae3887d7fa0525255a74c0d788ffe6190a2a904;p=senf.git diff --git a/Packets/Packet.hh b/Packets/Packet.hh index 4a25789..8cff108 100644 --- a/Packets/Packet.hh +++ b/Packets/Packet.hh @@ -732,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); + ///@} }