Skip to content
Snippets Groups Projects
Commit 56588dd8 authored by tho's avatar tho
Browse files

some small doc fixes

parent a253da17
No related branches found
No related tags found
No related merge requests found
...@@ -222,8 +222,8 @@ namespace senf { ...@@ -222,8 +222,8 @@ namespace senf {
\code \code
// Here 'SomeRegistryTag' is optional // Here 'SomeRegistryTag' is optional
struct SimplePacketType struct SimplePacketType
: public senf::PacketTypeBase : public senf::PacketTypeBase,
public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag> public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag>
{ {
typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin; typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin;
typedef senf::ConcretePacket<SimplePacketType> packet; typedef senf::ConcretePacket<SimplePacketType> packet;
...@@ -292,8 +292,8 @@ namespace senf { ...@@ -292,8 +292,8 @@ namespace senf {
\code \code
struct SimplePacketType struct SimplePacketType
: public senf::PacketTypeBase : public senf::PacketTypeBase,
public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag> public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag>
{ {
typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin; typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin;
typedef senf::ConcretePacket<SimplePacketType> packet; typedef senf::ConcretePacket<SimplePacketType> packet;
......
...@@ -180,15 +180,15 @@ namespace senf { ...@@ -180,15 +180,15 @@ namespace senf {
(senf::Parse_UInt32) ); (senf::Parse_UInt32) );
senf::Parse_UInt8 uint8() const { return content().get<1>(); } senf::Parse_UInt8 uint8() const { return content().get<1>(); }
senf::Parse_UInt8 uint16() const { return content().get<2>(); } senf::Parse_UInt16 uint16() const { return content().get<2>(); }
senf::Parse_UInt8 uint24() const { return content().get<3>(); } senf::Parse_UInt24 uint24() const { return content().get<3>(); }
senf::Parse_UInt8 uint32() const { return content().get<4>(); } senf::Parse_UInt32 uint32() const { return content().get<4>(); }
void disable() const { content().init<0>(); } void disable() const { content().init<0>(); }
void set_uint8() const { content().init<1>(); } void set_uint8() const { content().init<1>(); }
void set_uint16() const { content().init<1>(); } void set_uint16() const { content().init<2>(); }
void set_uint24) const { content().init<1>(); } void set_uint24) const { content().init<3>(); }
void set_uint23() const { content().init<1>(); } void set_uint23() const { content().init<4>(); }
SENF_PARSER_FINALIZE(SomeParser); SENF_PARSER_FINALIZE(SomeParser);
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment