xorp

EightBitTime Class Reference

Helper class to encode a TimeVal as an 8 bit binary floating point value. More...

#include <olsr_types.hh>

List of all members.

Static Public Member Functions

static TimeVal to_timeval (const uint8_t byte)
 Helper function to convert from a TimeVal to the eight-bit floating point format used by OLSR.
static uint8_t from_timeval (const TimeVal &tv)
 Helper function to convert the eight-bit floating point format used by OLSR to a TimeVal.

Static Private Attributes

static const int _mod = 16
static const double _scaling_factor = 0.0625f

Detailed Description

Helper class to encode a TimeVal as an 8 bit binary floating point value.


The documentation for this class was generated from the following files:
 All Classes Namespaces Functions Variables Typedefs Enumerations