X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseInt.hh;h=f73c4374efba66ed0cc8520dd35cf6005d603b29;hb=b58cd652f29256e1a0d774159bc8da7357d0df8d;hp=ee97811b906d3b182bc71ab3be62da3e8ea48f20;hpb=e21a814c84efb8ba3a6a978c6907f3c401c649ff;p=senf.git diff --git a/Packets/ParseInt.hh b/Packets/ParseInt.hh index ee97811..f73c437 100644 --- a/Packets/ParseInt.hh +++ b/Packets/ParseInt.hh @@ -299,6 +299,8 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef boost::int32_t value_type; + static size_type const start_bit = Start; + static size_type const end_bit = End; static size_type const fixed_bytes = (End-1)/8+1; value_type value() const { @@ -352,6 +354,8 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef boost::uint32_t value_type; + static size_type const start_bit = Start; + static size_type const end_bit = End; static size_type const fixed_bytes = (End-1)/8+1; value_type value() const { return detail::packet::parse_bitfield::parse(i()); } @@ -393,6 +397,7 @@ namespace senf { /////////////////////////////////////////////////////////////////////////// typedef bool value_type; + static size_type const bit = Bit; static size_type const fixed_bytes = Bit/8+1; value_type value() const { return i()[Bit/8] & (1<<(7-(Bit%8))); } @@ -413,7 +418,7 @@ namespace senf { ///////////////////////////////hh.e//////////////////////////////////////// #endif -#if !defined(SENF_PACKETS_DECL_ONLY) && !defined(HH_ParseInt_i_) +#if !defined(HH_Packets__decls_) && !defined(HH_ParseInt_i_) #define HH_ParseInt_i_ //#include "ParseInt.cci" //#include "ParseInt.ct"