42#ifndef _DWMTIMEINTERVAL64_HH_
43#define _DWMTIMEINTERVAL64_HH_
79 : _data(timeInterval._data)
87 _data.first = timeInterval.
Start();
88 _data.second = timeInterval.
End();
109 return(_data.second);
127 return (_data.second - _data.first);
164 std::istream &
Read(std::istream & is);
169 std::ostream &
Write(std::ostream & os)
const;
220 std::pair<TimeValue64, TimeValue64> _data;
Dwm::TimeInterval class definition.
Dwm::TimeValue64 class definition.
This class encapsulates a time interval.
Definition DwmTimeInterval64.hh:57
std::istream & Read(std::istream &is)
Reads the time interval from an istream. Returns the istream.
int Write(gzFile gzf) const
Writes the time interval to a gzFile.
bool Overlaps(const TimeInterval64 &ti) const
Returns true if ti overlaps the time interval.
bool Contains(const TimeInterval64 &ti) const
Returns true if the TimeInterval ti is completely contained within our time interval.
const TimeValue64 & Start(const TimeValue64 &start)
Sets and returns the start time.
TimeInterval64(const TimeInterval64 &timeInterval)
Copy constructor.
Definition DwmTimeInterval64.hh:78
int BZWrite(BZFILE *bzf) const
Writes the time interval to a BZFILE pointer.
bool Adjacent(const TimeInterval64 &ti) const
Returns true if ti is immediately adjacent our time interval, i.e.
size_t Read(FILE *f)
Reads the time interval from a FILE pointer.
int Read(gzFile gzf)
Reads the time interval from a gzFile.
TimeInterval64()
Contructor.
Definition DwmTimeInterval64.hh:62
size_t Write(FILE *f) const
Writes the time interval to a FILE pointer.
ssize_t Read(int fd)
Reads the time interval from a file descriptor.
const TimeValue64 & End(const TimeValue64 &end)
Sets and returns the end time.
bool Contains(const TimeValue64 &tv) const
Returns true if the TimeValue64 tv falls within the time interval, i.e.
TimeInterval64(const TimeValue64 &start, const TimeValue64 &end)
Construct from a start and end time.
Definition DwmTimeInterval64.hh:69
ssize_t Write(int fd) const
Wries the time interval to a file descriptor.
int BZRead(BZFILE *bzf)
Reads the time interval from a BZFILE pointer.
bool operator==(const TimeInterval64 &ti) const
operator ==
const TimeValue64 & End() const
Returns the end time.
Definition DwmTimeInterval64.hh:107
uint64_t StreamedLength() const
Returns the length of the time insterval, in bytes.
std::ostream & Write(std::ostream &os) const
Writes the time interval to an ostream. Returns the ostream.
const TimeValue64 & Start() const
Returns the start time.
Definition DwmTimeInterval64.hh:94
This class encapsulates a time interval.
Definition DwmTimeInterval.hh:56
const TimeValue & End() const
Returns the end time.
Definition DwmTimeInterval.hh:97
const TimeValue & Start() const
Returns the start time.
Definition DwmTimeInterval.hh:84
This class encapsulates a time value beyond the UNIX epoch, with microsecond granularity.
Definition DwmTimeValue64.hh:67