1 #ifndef __JLANG__JTIMEVAL__ 
    2 #define __JLANG__JTIMEVAL__ 
   17 namespace JPP { 
using namespace JLANG; }
 
   49       this->tv_usec = tv_us;
 
   62       this->tv_usec = tv_us;
 
   73       return static_cast<const JTimeval&
>(*this);
 
   84       return static_cast<JTimeval&
>(*this);
 
   95       static_cast<JTimeval&
>(*this) = timeval;
 
  107       if (this->tv_sec == value.tv_sec)
 
  108         return this->tv_usec < value.tv_usec;
 
  110         return this->tv_sec  < value.tv_sec;
 
  133       return JTimeval(std::numeric_limits<int>::max(), std::numeric_limits<int>::max());
 
  143     const timeval* 
get()
 const 
  145       return static_cast<const timeval*
>(
this);
 
  156       return static_cast<timeval*
>(
this);
 
  191       return in >> time.tv_sec >> time.tv_usec;
 
  204       return out << time.tv_sec << 
' ' << time.tv_usec;
 
Auxiliary class for time values.
 
friend std::istream & operator>>(std::istream &in, JTimeval &time)
Read time value from input.
 
JTimeval(const int tv_s, const int tv_us)
Constructor.
 
void setTimeval(const JTimeval &timeval)
Set time value.
 
friend std::ostream & operator<<(std::ostream &out, const JTimeval &time)
Write time value to output.
 
const timeval * operator&() const
Address of operator.
 
JTimeval()
Default constructor.
 
JTimeval(const int tv_us)
Constructor.
 
JTimeval & getTimeval()
Get time value.
 
const timeval * get() const
Get pointer to time value.
 
const JTimeval & getTimeval() const
Get time value.
 
static JTimeval min()
Get minimal time value.
 
timeval * get()
Get pointer to time value.
 
bool less(const JTimeval &value) const
Less than method.
 
static JTimeval max()
Get maximal time value.
 
Auxiliary classes and methods for language specific functionality.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
Template definition of auxiliary base class for comparison of data structures.