#include<ktime.h>
List of all members.
Detailed Description
Class to encapsulate time intervals.
Definition at line544of filektime.h.
Constructor&Destructor Documentation
Constructor.
- Parameters:
| pStart | Beginning of the time interval. |
| pStop | Ending of the time interval. |
Definition at line556of filektime.h.
Member Function Documentation
Set start and stop time.
- Parameters:
| pStart | Beginning of the time interval. |
| pStop | Ending of the time interval. |
Definition at line562of filektime.h.
void SetStart | ( | KTime | pStart | ) | [inline] |
Set start time.
- Parameters:
| pStart | Beginning of the time interval. |
Definition at line567of filektime.h.
void SetStop | ( | KTime | pStop | ) | [inline] |
Set stop time.
- Parameters:
| pStop | Ending of the time interval. |
Definition at line572of filektime.h.
KTime&GetStart | ( | | ) | [inline] |
Get start time.
- Returns:
- Beginning of time interval.
Definition at line577of filektime.h.
KTime&GetStop | ( | | ) | [inline] |
Get stop time.
- Returns:
- Ending of time interval.
Definition at line582of filektime.h.
KTimeGetDuration | ( | | ) | const[inline] |
Get time interval in absolute value.
- Returns:
- Time interval.
Definition at line587of filektime.h.
KTimeGetSignedDuration | ( | | ) | const[inline] |
Get time interval.
- Returns:
- Signed time interval.
Definition at line592of filektime.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 line597of filektime.h.
bool operator& | ( | KTime& | pTime | ) | const |
Returntrue
if the time is inside the timespan.
- Parameters:
| pTime | Judge whether pTime is inside the timespan. |
- Returns:
True
if is,false
otherwise.
Return the intersection of the two time spans.
- Parameters:
- Returns:
- The intersection of pTime and thisKTimeSpan.
Inequality operator.
- Parameters:
- Returns:
True
if unequal,false
otherwise.