FBTimeSpan Class Reference

#include <fbtime.h>
FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan FBTimeSpan

List of all members.


Detailed Description

TimeSpan class.

Definition at line 267 of file fbtime.h.


Public Member Functions

  FBTimeSpan (FBTime pStart=0, FBTime pStop=0)
  Constructor.
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.
FBTime GetStart ()
  Get the start/stop time.
FBTime GetStop ()
  Get the start/stop time.
const FBTime GetStart () const
  Get the start/stop time.
const FBTime GetStop () const
  Get the start/stop time.

Constructor & Destructor Documentation

FBTimeSpan ( FBTime  pStart = 0,
FBTime  pStop = 0  
)

Constructor.

Parameters:
pStart  Start time(default=0).
pStop  Stop time(default=0).

Member Function Documentation

FBTime& GetStart (  ) 

Get the start/stop time.

Returns:
Start/Stop time.

FBTime& GetStop (  ) 

Get the start/stop time.

Returns:
Start/Stop time.

const FBTime& GetStart (  )  const

Get the start/stop time.

Returns:
Start/Stop time.

const FBTime& GetStop (  )  const

Get the start/stop time.

Returns:
Start/Stop time.

void Set ( FBTime  pStart,
FBTime  pStop  
)

Set the TimeSpan.

Parameters:
pStart  Start time.
pStop  Stop time.

FBTime GetDuration (  ) 

Get the unsigned duration value of a timespan.

Returns:
Unsigned duration of the timespan.

FBTime GetSignedDuration (  ) 

Get the signed duration value of a timespan.

Returns:
Signed duration of the timespan.

int GetDirection (  ) 

Get the direction of the timespan.

Returns 1 if positive, -1 otherwise.

Returns:
Direction of timespan.

bool operator & ( FBTime pTime  ) 

Verify if pTime is contained within the timespan.

Parameters:
pTime  Time to verify if within the timespan.
Returns:
true if pTime is within the timespan.

FBTimeSpan operator & ( FBTimeSpan pTimeSpan  ) 

Calculate the intersection of two timespans.

Returns:
Timespan representing the intersection of the two timespans.

Please send us your comments about this page.