#include <fbtime.h>
Public Member Functions |
|
FBTime (kLongLong pTime=0) | |
FBTime (int pHour, int pMinute, int pSecond=0, int pFrame=0, int pField=0, FBTimeMode pTimeMode=kFBTimeModeDefault, double pFramerate=0.0) | |
Constructor. |
|
FBString | GetTimeString () |
Get time as a string. |
|
void | SetTimeString (char *pTime) |
Set time from string. |
|
bool | GetTime (kLongLong &pHour, kLongLong &pMinute, kLongLong &pSecond, kLongLong &pFrame, kLongLong &pField, kLongLong &pMilliSecond, FBTimeMode pTimeMode=kFBTimeModeDefault, double pFramerate=0.0) |
Get time (filling separate values) |
|
kLongLong | GetMilliSeconds () |
Get milliseconds for time. |
|
void | SetMilliSeconds (kLongLong pMilliSeconds) |
Set milliseconds time. |
|
kLongLong & | Get () |
Get time value (long) |
|
const kLongLong & | Get () const |
Get time value (long) |
|
void | Set (kLongLong pTime) |
Set time value from a long. |
|
double | GetSecondDouble () |
Get seconds as double. |
|
void | SetSecondDouble (double pTime) |
Set seconds from double. |
|
void | SetTime (int pHour, int pMinute=0, int pSecond=0, int pFrame=0, int pField=0, FBTimeMode pTimeMode=kFBTimeModeDefault, double pFramerate=0.0) |
Set time (from separate values) |
|
kLongLong | GetFrame (bool pCummul=false, FBTimeMode pTimeMode=kFBTimeModeDefault, double pFramerate=0.0) |
Get the frame count. |
|
FBTime & | operator= (const FBTime &pTime) |
Overloaded assignment operators with
FBTime objects. |
|
FBTime & | operator+= (const FBTime &pTime) |
FBTime & | operator-= (const FBTime &pTime) |
FBTime & | operator*= (const FBTime &pTime) |
FBTime & | operator/= (const FBTime &pTime) |
FBTime & | operator= (double pConstant) |
Overloaded assignment operators with
constants. |
|
FBTime & | operator+= (double pConstant) |
FBTime & | operator-= (double pConstant) |
FBTime & | operator*= (double pConstant) |
FBTime & | operator/= (double pConstant) |
FBTime | operator- (const FBTime &pTime) |
Overloaded arithmetic operators with
FBTime objects. |
|
FBTime | operator+ (const FBTime &pTime) |
FBTime | operator/ (const FBTime &pTime) |
FBTime | operator* (const FBTime &pTime) |
FBTime | operator- (double pConstant) |
Overloaded arithmetic operators with
constants. |
|
FBTime | operator+ (double pConstant) |
FBTime | operator/ (double pConstant) |
FBTime | operator* (double pConstant) |
bool | operator== (const FBTime &pTime) |
Overloaded comparison operators. |
|
bool | operator!= (const FBTime &pTime) |
bool | operator>= (const FBTime &pTime) |
bool | operator<= (const FBTime &pTime) |
bool | operator> (const FBTime &pTime) |
bool | operator< (const FBTime &pTime) |
Static Public Attributes |
|
static const FBTime | Infinity |
Time constant: Infinity, the largest time
value. |
|
static const FBTime | MinusInfinity |
Time constant: Minus Infinity, the lowest
negative time value. |
|
static const FBTime | Zero |
Time constant: Zero. |
|
static const FBTime | Epsilon |
Time constant: Epsilon, the smallest time
increment. |
|
static const FBTime | OneSecond |
Time constant: One Second. |
|
static const FBTime | OneMinute |
Time constant: One Minute. |
|
static const FBTime | OneHour |
Time constant: One Hour. |
FBTime | ( | int | pHour, |
int | pMinute, | ||
int | pSecond = 0 , |
||
int | pFrame = 0 , |
||
int | pField = 0 , |
||
FBTimeMode | pTimeMode =
kFBTimeModeDefault , |
||
double | pFramerate =
0.0 |
||
) |
Constructor.
pHour | Hour value. |
pMinute | Minute value. |
pSecond | Second value. |
pFrame | Frame value. |
pField | Field value. |
pTimeMode | Time mode(default=kFBTimeModeDefault). |
pFramerate | Custom framerate value in case of pTimeMode = kFBTimeModeCustom. |
FBString GetTimeString | ( | ) |
void SetTimeString | ( | char * | pTime | ) |
bool GetTime | ( | kLongLong & | pHour, |
kLongLong & | pMinute, | ||
kLongLong & | pSecond, | ||
kLongLong & | pFrame, | ||
kLongLong & | pField, | ||
kLongLong & | pMilliSecond, | ||
FBTimeMode | pTimeMode =
kFBTimeModeDefault , |
||
double | pFramerate =
0.0 |
||
) |
Get time (filling separate values)
pHour | Hour value. |
pMinute | Minute value. |
pSecond | Second value. |
pFrame | Frame value. |
pField | Field value. |
pMilliSecond | MilliSecond value. |
pTimeMode | Time mode to get time as. |
pFramerate | Custom framerate value in case of pTimeMode = kFBTimeModeCustom. |
kLongLong GetMilliSeconds | ( | ) |
void SetMilliSeconds | ( | kLongLong | pMilliSeconds | ) |
kLongLong& Get | ( | ) |
const kLongLong& Get | ( | ) | const |
void Set | ( | kLongLong | pTime | ) |
double GetSecondDouble | ( | ) |
void SetSecondDouble | ( | double | pTime | ) |
void SetTime | ( | int | pHour, |
int | pMinute = 0 , |
||
int | pSecond = 0 , |
||
int | pFrame = 0 , |
||
int | pField = 0 , |
||
FBTimeMode | pTimeMode =
kFBTimeModeDefault , |
||
double | pFramerate =
0.0 |
||
) |
Set time (from separate values)
pHour | Hour value. |
pMinute | Minute value(default=0). |
pSecond | Second value(default=0). |
pFrame | Frame value(default=0). |
pField | Field value(default=0). |
pTimeMode | Time mode to get time as(default=kFBTimeModeDefault). |
pFramerate | Custom framerate value in case of pTimeMode = kFBTimeModeCustom. |
Overloaded assignment operators with FBTime objects.
pTime | Time to assign with operator. |
FBTime& operator= | ( | double | pConstant | ) |
Overloaded assignment operators with constants.
pConstant | Time to assign with operator. |
FBTime& operator+= | ( | double | pConstant | ) |
FBTime& operator-= | ( | double | pConstant | ) |
FBTime& operator*= | ( | double | pConstant | ) |
FBTime& operator/= | ( | double | pConstant | ) |
FBTime operator- | ( | double | pConstant | ) |
Overloaded arithmetic operators with constants.
pConstant | Double constant to add to time. |
FBTime operator+ | ( | double | pConstant | ) |
FBTime operator/ | ( | double | pConstant | ) |
FBTime operator* | ( | double | pConstant | ) |
bool operator== | ( | const FBTime & | pTime | ) |
Overloaded comparison operators.
pTime | Time to compare with. |
bool operator!= | ( | const FBTime & | pTime | ) |
bool operator>= | ( | const FBTime & | pTime | ) |
bool operator<= | ( | const FBTime & | pTime | ) |
bool operator> | ( | const FBTime & | pTime | ) |
bool operator< | ( | const FBTime & | pTime | ) |
kLongLong GetFrame | ( | bool | pCummul = false , |
FBTimeMode | pTimeMode =
kFBTimeModeDefault , |
||
double | pFramerate =
0.0 |
||
) |
Get the frame count.
With this function, it is possible to obtain the cumulative and local frame counts.
pCummul | Cumulative frame count (true ), or local frame count (false )(default is false). |
pTimeMode | Time mode to get the constant (default is kFBTimeModeDefault). |
pFramerate | Custom framerate value in case of pTimeMode = kFBTimeModeCustom. |
Time constant: Infinity, the largest time value.
const FBTime MinusInfinity
[static] |
Time constant: Minus Infinity, the lowest negative time value.
Time constant: Epsilon, the smallest time increment.