Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

olsr::utl::Vtime Class Reference

Validity time processing and calculation. More...

#include <vtime.hh>

List of all members.

Public Member Functions

 Vtime (const Vtime &other)
 Vtime (const byte_t other)
 Vtime (const float fsecs)
 Vtime (const timeval_t &other)
 operator byte_t ()
 operator float ()
 operator timeval_t ()
std::ostream & output (std::ostream &o) const

Private Types

typedef u_int8_t byte_t
typedef unsigned secs_t

Private Attributes

raw _value
 Internal raw value.

Classes

struct  raw
 Convenience data structure for raw access. More...


Detailed Description

Validity time processing and calculation.


Member Typedef Documentation

typedef u_int8_t olsr::utl::Vtime::byte_t [private]
 

typedef unsigned olsr::utl::Vtime::secs_t [private]
 


Constructor & Destructor Documentation

olsr::utl::Vtime::Vtime const Vtime other  ) 
 

Copy constructor

olsr::utl::Vtime::Vtime const byte_t  other  )  [explicit]
 

Constructor. Initializes from an encoded byte.

  • other byte from header of message

olsr::utl::Vtime::Vtime const float  fsecs  ) 
 

Constructor.

  • fsecs validity time in seconds

olsr::utl::Vtime::Vtime const timeval_t other  ) 
 

Constructor.

  • other validity time


Member Function Documentation

olsr::utl::Vtime::operator byte_t  )  [inline]
 

Operator for conversion to byte.

olsr::utl::Vtime::operator float  )  [inline]
 

Operator for conversion to seconds.

olsr::utl::Vtime::operator timeval_t  )  [inline]
 

Operator for conversion to time.

std::ostream & olsr::utl::Vtime::output std::ostream &  o  )  const
 

Printing method.


Member Data Documentation

raw olsr::utl::Vtime::_value [private]
 

Internal raw value.


The documentation for this class was generated from the following files:
Generated on Thu Jul 28 21:21:52 2005 for Qolyester daemon by  doxygen 1.4.1