KTimeSpan Class Reference

#include <ktime.h>

List of all members.


Detailed Description

Class to encapsulate time intervals.

Definition at line 476 of file ktime.h.

Public Member Functions

 KTimeSpan ()
 Constructor.
 KTimeSpan (KTime pStart, KTime pStop)
 Constructor.
void Set (KTime pStart, KTime pStop)
 Set start and stop time.
void SetStart (KTime pStart)
 Set start time.
void SetStop (KTime pStop)
 Set stop time.
KTimeGetStart ()
 Get start time.
KTimeGetStop ()
 Get stop time.
KTime GetDuration () const
 Get time interval in absolute value.
KTime GetSignedDuration () const
 Get time interval.
int GetDirection () const
 Get direction of the time interval.
bool operator & (KTime &pTime) const
 Return true if the time is inside the timespan.
KTimeSpan operator & (KTimeSpan &pTime) const
 Return the intersection of the two time spans.
bool operator!= (KTimeSpan &pTime)
 Return the intersection of the two time spans.


Constructor & Destructor Documentation

KTimeSpan (  )  [inline]

Constructor.

Definition at line 482 of file ktime.h.

KTimeSpan ( KTime  pStart,
KTime  pStop 
) [inline]

Constructor.

Parameters:
pStart Beginning of the time interval.
pStop Ending of the time interval.

Definition at line 488 of file ktime.h.


Member Function Documentation

void Set ( KTime  pStart,
KTime  pStop 
) [inline]

Set start and stop time.

Parameters:
pStart Beginning of the time interval.
pStop Ending of the time interval.

Definition at line 494 of file ktime.h.

void SetStart ( KTime  pStart  )  [inline]

Set start time.

Parameters:
pStart Beginning of the time interval.

Definition at line 499 of file ktime.h.

void SetStop ( KTime  pStop  )  [inline]

Set stop time.

Parameters:
pStop Ending of the time interval.

Definition at line 504 of file ktime.h.

KTime& GetStart (  )  [inline]

Get start time.

Returns:
Beginning of time interval.

Definition at line 509 of file ktime.h.

KTime& GetStop (  )  [inline]

Get stop time.

Returns:
Ending of time interval.

Definition at line 514 of file ktime.h.

KTime GetDuration (  )  const [inline]

Get time interval in absolute value.

Returns:
Time interval.

Definition at line 519 of file ktime.h.

KTime GetSignedDuration (  )  const [inline]

Get time interval.

Returns:
Signed time interval.

Definition at line 524 of file ktime.h.

int GetDirection (  )  const [inline]

Get direction of the time interval.

Returns:
KTS_FORWARD if time interval is forward, KTS_BACKWARD if backward.

Definition at line 529 of file ktime.h.

References KTS_BACKWARD, and KTS_FORWARD.

bool operator & ( KTime pTime  )  const

Return true if the time is inside the timespan.

KTimeSpan operator & ( KTimeSpan pTime  )  const

Return the intersection of the two time spans.

bool operator!= ( KTimeSpan pTime  ) 

Return the intersection of the two time spans.