Go to the documentation of this file.    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.
 
const JTimeval & getTimeval() const
Get time value.
 
const timeval * operator&() const
Address of operator.
 
friend std::ostream & operator<<(std::ostream &out, const JTimeval &time)
Write time value to output.
 
static JTimeval min()
Get minimal time value.
 
JTimeval(const int tv_s, const int tv_us)
Constructor.
 
static JTimeval max()
Get maximal time value.
 
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
 
timeval * get()
Get pointer to time value.
 
Template definition of auxiliary base class for comparison of data structures.
 
JTimeval(const int tv_us)
Constructor.
 
const timeval * get() const
Get pointer to time value.
 
JTimeval()
Default constructor.
 
friend std::istream & operator>>(std::istream &in, JTimeval &time)
Read time value from input.
 
Auxiliary classes and methods for language specific functionality.
 
JTimeval & getTimeval()
Get time value.
 
void setTimeval(const JTimeval &timeval)
Set time value.
 
bool less(const JTimeval &value) const
Less than method.