TimeSpan class. More...
#include <fbtime.h>
Public Member Functions | |
| FBTimeSpan (FBTime pStart=0, FBTime pStop=0) | |
| Constructor. | |
| FBTime & | GetStart () |
| Get the start/stop time. | |
| FBTime & | GetStop () |
| const FBTime & | GetStart () const |
| const FBTime & | GetStop () const |
| void | Set (FBTime pStart, FBTime pStop) |
| Set the TimeSpan. | |
| FBTime | GetDuration () |
| Get the unsigned duration value of a timespan. | |
| FBTime | GetSignedDuration () |
| Get the signed duration value of a timespan. | |
| int | GetDirection () |
| Get the direction of the timespan. | |
| bool | operator& (FBTime &pTime) |
| Verify if pTime is contained within the timespan. | |
| FBTimeSpan | operator& (FBTimeSpan &pTimeSpan) |
| Calculate the intersection of two timespans. | |
| FBTimeSpan | ( | FBTime | pStart = 0, |
| FBTime | pStop = 0 |
||
| ) |
Constructor.
| pStart | Start time(default=0). |
| pStop | Stop time(default=0). |
| int GetDirection | ( | ) |
Get the direction of the timespan.
Returns 1 if positive, -1 otherwise.
| FBTime GetDuration | ( | ) |
Get the unsigned duration value of a timespan.
| FBTime GetSignedDuration | ( | ) |
Get the signed duration value of a timespan.
| FBTime & GetStart | ( | ) |
Get the start/stop time.
| bool operator& | ( | FBTime & | pTime | ) |
Verify if pTime is contained within the timespan.
| pTime | Time to verify if within the timespan. |
| FBTimeSpan operator& | ( | FBTimeSpan & | pTimeSpan | ) |
Calculate the intersection of two timespans.
Set the TimeSpan.
| pStart | Start time. |
| pStop | Stop time. |