Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Examples  

YTIME Class Reference

#include <datatypes.h>

Inheritance diagram for YTIME:

Inheritance graph
[legend]
Collaboration diagram for YTIME:

Collaboration graph
[legend]
List of all members.

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_TIMEoperator= (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)

Member Enumeration Documentation

anonymous enum
 

Enumeration values:
YASA_SHORT_INFINITY_TIME 
YASA_TIME_MIN 
YASA_TIME_INT_MAX 


Constructor & Destructor Documentation

YTIME::YTIME YASA_TIME    t = YASA_TIME_MIN [inline]
 

YTIME::YTIME const YTIME *    t [inline]
 


Member Function Documentation

virtual bool YTIME::CheckLimits YASA_TIME   dest,
const YASA_TIME   source
const [inline, virtual]
 

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.

QString YTIME::GetContentString YASA_TIME    time [static]
 

QString YTIME::GetContentString   const [virtual]
 

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.

QString YTIME::GetContentStringMax YASA_TIME    time [static]
 

QString YTIME::GetSourceString YASA_TIME    time [static]
 

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()

QString YTIME::GetVisibleContentString YASA_TIME    time [static]
 

returns the time as visible string with explanations like "infinity"

QString YTIME::GetVisibleContentString   const [virtual]
 

returns the time as visible string with explanations like "infinity"

Reimplemented from YDerivedObject.

Reimplemented in YASA_TICK.

bool YTIME::IsInfinity   const [inline]
 

YTIME::operator YASA_TIME   const [inline]
 

YASA_TIME YTIME::operator- const YTIME &    t const [inline]
 

bool YTIME::operator< const YTIME &    t const [inline]
 

bool YTIME::operator<= const YTIME &    t const [inline]
 

const YASA_TIME& YTIME::operator= const YASA_TIME   c [inline]
 

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.

bool YTIME::operator> const YTIME &    t const [inline]
 

bool YTIME::operator>= const YTIME &    t const [inline]
 

int YTIME::ReadFromString const QString &    content [virtual]
 

Read the contents from a string, e.g. reading from configuration files.

Reimplemented from YDerivedObject.

YASA_TIME YTIME::ReadYasaTimeFromString const QString &    str,
bool *    ok
[static]
 


The documentation for this class was generated from the following files:
Generated on Fri Feb 14 00:05:44 2003 for Yasa by doxygen1.3-rc3