#include <datatypes.h>
Inheritance diagram for YTIME:
Public Types | |
enum | { YASA_SHORT_INFINITY_TIME = -1, YASA_TIME_MIN = 0, YASA_TIME_INT_MAX = 0x7fffffff } |
Public Member Functions | |
YTIME (YASA_TIME t=YASA_TIME_MIN) | |
YTIME (const YTIME *t) | |
virtual QString | GetContentString () const |
QString | GetVisibleContentString () const |
virtual int | ReadFromString (const QString &s) |
Read the contents from a string, e.g. reading from configuration files. | |
bool | IsInfinity () const |
YASA_TIME | operator- (const YTIME &t) const |
bool | operator< (const YTIME &t) const |
bool | operator<= (const YTIME &t) const |
bool | operator> (const YTIME &t) const |
bool | operator>= (const YTIME &t) const |
const YASA_TIME & | operator= (const YASA_TIME &c) |
This operator sets the content of the instance. | |
operator YASA_TIME () const | |
virtual bool | CheckLimits (YASA_TIME &dest, const YASA_TIME &source) const |
Static Public Member Functions | |
QString | GetContentString (YASA_TIME time) |
QString | GetContentStringMax (YASA_TIME time) |
QString | GetSourceString (YASA_TIME time) |
YASA_TIME | ReadYasaTimeFromString (const QString &str, bool *ok) |
QString | GetVisibleContentString (YASA_TIME time) |
|
|
|
|
|
|
|
Sets time to the specified value. To set an infinite time use YTIME::YASA_SHORT_INFINITY_TIME or YASA_TIME_INFINITY Reimplemented from YDerivedType< YASA_TIME >. Reimplemented in YASA_DEADLINE, and YASA_TICK. |
|
|
|
Return the time as string ( like snprintf("%ldd",time) ). Only strings in English are allowed due to using this strings in configs. For localization issues use YASA_TIME::GetVisibleContentString() Reimplemented from YDerivedObject. |
|
|
|
Return the time as string ( like snprintf("%ldd",time) ). Only strings in English are allowed due to using this strings in configs. For localization issues use YASA_TIME::GetVisibleContentString() |
|
returns the time as visible string with explanations like "infinity" |
|
returns the time as visible string with explanations like "infinity" Reimplemented from YDerivedObject. Reimplemented in YASA_TICK. |
|
|
|
|
|
|
|
|
|
|
|
This operator sets the content of the instance.
Reimplemented from YDerivedType< YASA_TIME >. Reimplemented in YASA_PERIOD, YASA_DEADLINE, YASA_DEADLINETOLERANCE, YASA_LAXITY, YASA_REQUIREDTIME, YASA_OFFSET, YASA_SCHEDULINGTIME, YASA_SYNCHRONIZATIONOFFSET, and YASA_TICK. |
|
|
|
|
|
Read the contents from a string, e.g. reading from configuration files.
Reimplemented from YDerivedObject. |
|
|