17 #ifndef HH_SENF_Packets_PacketType_ 18 #define HH_SENF_Packets_PacketType_ 1 116 template <
class PacketType>
static factory_t
factory();
144 static void init(packet p);
198 static void dump(packet p, std::ostream & os);
299 template <
class Self,
class Registry=
void>
303 typedef typename Registry::key_t
key_t;
306 static optional_key_t key (
Packet const & p);
337 template <
class Self>
352 #if !defined(HH_SENF_Packets_Packets__decls_) && !defined(HH_SENF_Packets_PacketType_i_) 353 #define HH_SENF_Packets_PacketType_i_ static optional_range no_range()
senf::detail::packet::byte byte
PacketParser public header.
PacketInterpreterBase::optional_range optional_range
PacketTypes public header.
Mixin to provide standard implementations for nextPacketRange and nextPacketType. ...
PacketData public header.
VoidPacketParser parser
Parser to parser packet fields.
boost::optional< key_t > optional_key_t
static void init(packet p)
Initialize new packet.
static factory_t factory()
raw_container::const_iterator const_iterator
static size_type initSize()
Get size of new (empty) packet.
Protocol specific packet handle.
Helper base-class implementing the PacketType interface.
static size_type initHeadSize()
Get size of new (empty) packet header.
raw_container::size_type size_type
static optional_range nextPacketRange(packet p)
Get next packet placement.
Default parser parsing nothing.
raw_container::iterator iterator
senf::detail::packet::size_type size_type
static factory_t nextPacketType(packet p)
Get type of next packet.
senf::detail::packet::difference_type difference_type
PacketInterpreterBase::range range
static void finalize(packet p)
Finalize packet.
senf::detail::packet::iterator iterator
senf::detail::packet::const_iterator const_iterator
raw_container::difference_type difference_type
boost::optional< range > optional_range
static factory_t no_factory()
senf::detail::packet::size_type size_type
boost::iterator_range< iterator > range
PacketInterpreterBase::factory_t factory_t
Factory const * factory_t
static void dump(packet p, std::ostream &os)
Dump packet data in readable form.