some small doc fixes
tho [Wed, 7 Nov 2007 17:05:27 +0000 (17:05 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@498 270642c3-0616-0410-b53a-bc976706d245

Packets/PacketType.hh
Packets/ParseVariant.hh

index e01db87..06c2a51 100644 (file)
@@ -222,8 +222,8 @@ namespace senf {
         \code
         // Here 'SomeRegistryTag' is optional
         struct SimplePacketType 
-            : public senf::PacketTypeBase
-              public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag>
+            : public senf::PacketTypeBase,
+              public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag>
         {
             typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin;
             typedef senf::ConcretePacket<SimplePacketType> packet;
@@ -292,8 +292,8 @@ namespace senf {
 
         \code
         struct SimplePacketType 
-            : public senf::PacketTypeBase
-              public senf:PacketTypeMixin<SimplePacketType, SomeRegistryTag>
+            : public senf::PacketTypeBase,
+              public senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag>
         {
             typedef senf::PacketTypeMixin<SimplePacketType, SomeRegistryTag> mixin;
             typedef senf::ConcretePacket<SimplePacketType> packet;
index e8593b5..9deb622 100644 (file)
@@ -180,15 +180,15 @@ namespace senf {
                                             (senf::Parse_UInt32) );
 
             senf::Parse_UInt8 uint8()  const { return content().get<1>(); }
-            senf::Parse_UInt8 uint16() const { return content().get<2>(); }
-            senf::Parse_UInt8 uint24() const { return content().get<3>(); }
-            senf::Parse_UInt8 uint32() const { return content().get<4>(); }
+            senf::Parse_UInt16 uint16() const { return content().get<2>(); }
+            senf::Parse_UInt24 uint24() const { return content().get<3>(); }
+            senf::Parse_UInt32 uint32() const { return content().get<4>(); }
 
             void disable()    const { content().init<0>(); }
             void set_uint8()  const { content().init<1>(); }
-            void set_uint16() const { content().init<1>(); }
-            void set_uint24)  const { content().init<1>(); }
-            void set_uint23() const { content().init<1>(); }
+            void set_uint16() const { content().init<2>(); }
+            void set_uint24)  const { content().init<3>(); }
+            void set_uint23() const { content().init<4>(); }
 
             SENF_PARSER_FINALIZE(SomeParser);
         };