X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=Packets%2FParseInt.hh;h=f73c4374efba66ed0cc8520dd35cf6005d603b29;hb=82ad2ed94c12c3e53097fef92978de8c28239fab;hp=a54a056195eae71d32c07f850ea54ea62193cd12;hpb=1cf24483a4b520177bfa539d9601749be6aef2ce;p=senf.git diff --git a/Packets/ParseInt.hh b/Packets/ParseInt.hh index a54a056..f73c437 100644 --- a/Packets/ParseInt.hh +++ b/Packets/ParseInt.hh @@ -20,6 +20,9 @@ // Free Software Foundation, Inc., // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +/** \file + \brief ParseInt public header */ + #ifndef HH_ParseInt_ #define HH_ParseInt_ 1 @@ -296,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 { @@ -349,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()); } @@ -390,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))); } @@ -410,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"