Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Examples

P::TimeSpan Class Reference
[Core library]

Timespan class. More...

#include <ptime.h>

List of all members.

Public Member Functions

 TimeSpan (unsigned int days=0, unsigned int hours=0, unsigned int minutes=0, unsigned int seconds=0, unsigned int usecs=0) throw (OverflowError)
 ~TimeSpan () throw ()
void setDays (unsigned int days) throw (OverflowError)
unsigned int days () const throw ()
void setHours (unsigned int hours) throw (OverflowError)
unsigned int hours () const throw ()
void setMinutes (unsigned int minutes) throw (OverflowError)
unsigned int minutes () const throw ()
void setSeconds (unsigned int seconds) throw (OverflowError)
unsigned int seconds () const throw ()
void setUsecs (unsigned int usec) throw (OverflowError)
unsigned int usecs () const throw ()
void normalize () throw (OverflowError)
 Normalize the timespan.

bool operator> (const TimeSpan &sp) const throw ()
bool operator< (const TimeSpan &sp) const throw ()
bool operator>= (const TimeSpan &sp) const throw ()
bool operator<= (const TimeSpan &sp) const throw ()
bool operator== (const TimeSpan &sp) const throw ()
bool operator!= (const TimeSpan &sp) const throw ()
TimeSpanoperator+= (const TimeSpan &sp) throw (OverflowError)
TimeSpanoperator-= (const TimeSpan &sp) throw ()

Friends

PCORE_EXPORT friend TimeSpan operator+ (const TimeSpan &sp1, const TimeSpan &sp2) throw (OverflowError)
PCORE_EXPORT friend TimeSpan operator- (const TimeSpan &sp1, const TimeSpan &sp2) throw ()


Detailed Description

Timespan class.

This class is used to add or subtract a timespan from a Date, Time or DateTime object.

Definition at line 37 of file ptime.h.


Constructor & Destructor Documentation

P::TimeSpan::TimeSpan unsigned int  days = 0,
unsigned int  hours = 0,
unsigned int  minutes = 0,
unsigned int  seconds = 0,
unsigned int  usecs = 0
throw (OverflowError)
 

P::TimeSpan::~TimeSpan  )  throw ()
 


Member Function Documentation

unsigned int P::TimeSpan::days  )  const throw ()
 

unsigned int P::TimeSpan::hours  )  const throw ()
 

unsigned int P::TimeSpan::minutes  )  const throw ()
 

void P::TimeSpan::normalize  )  throw (OverflowError)
 

Normalize the timespan.

bool P::TimeSpan::operator!= const TimeSpan sp  )  const throw ()
 

TimeSpan& P::TimeSpan::operator+= const TimeSpan sp  )  throw (OverflowError)
 

TimeSpan& P::TimeSpan::operator-= const TimeSpan sp  )  throw ()
 

bool P::TimeSpan::operator< const TimeSpan sp  )  const throw ()
 

bool P::TimeSpan::operator<= const TimeSpan sp  )  const throw ()
 

bool P::TimeSpan::operator== const TimeSpan sp  )  const throw ()
 

bool P::TimeSpan::operator> const TimeSpan sp  )  const throw ()
 

bool P::TimeSpan::operator>= const TimeSpan sp  )  const throw ()
 

unsigned int P::TimeSpan::seconds  )  const throw ()
 

void P::TimeSpan::setDays unsigned int  days  )  throw (OverflowError)
 

void P::TimeSpan::setHours unsigned int  hours  )  throw (OverflowError)
 

void P::TimeSpan::setMinutes unsigned int  minutes  )  throw (OverflowError)
 

void P::TimeSpan::setSeconds unsigned int  seconds  )  throw (OverflowError)
 

void P::TimeSpan::setUsecs unsigned int  usec  )  throw (OverflowError)
 

unsigned int P::TimeSpan::usecs  )  const throw ()
 


Friends And Related Function Documentation

PCORE_EXPORT friend TimeSpan operator+ const TimeSpan sp1,
const TimeSpan sp2
throw (OverflowError) [friend]
 

PCORE_EXPORT friend TimeSpan operator- const TimeSpan sp1,
const TimeSpan sp2
throw () [friend]
 


The documentation for this class was generated from the following file:
Generated on Fri Mar 12 21:08:37 2004 for P::Classes by doxygen 1.3.3