Qt 4.8
|
Implements the value instance of the xs:dayTimeDuration
type.
More...
#include <qdaytimeduration_p.h>
Public Types | |
typedef QExplicitlySharedDataPointer< DayTimeDuration > | Ptr |
Public Types inherited from QPatternist::AbstractDuration | |
typedef QExplicitlySharedDataPointer< AbstractDuration > | Ptr |
typedef qint64 | Value |
The amount in milli seconds. More... | |
Public Types inherited from QPatternist::AtomicValue | |
typedef QList< AtomicValue::Ptr > | List |
typedef QExplicitlySharedDataPointer< AtomicValue > | Ptr |
Public Functions | |
virtual DayCountProperty | days () const |
virtual Item | fromValue (const Value val) const |
virtual HourProperty | hours () const |
virtual MinuteProperty | minutes () const |
virtual MonthProperty | months () const |
virtual MSecondProperty | mseconds () const |
virtual SecondProperty | seconds () const |
virtual QString | stringValue () const |
virtual ItemType::Ptr | type () const |
virtual Value | value () const |
virtual YearProperty | years () const |
Public Functions inherited from QPatternist::AbstractDuration | |
bool | isPositive () const |
bool | operator== (const AbstractDuration &other) const |
Public Functions inherited from QPatternist::AtomicValue | |
virtual bool | evaluateEBV (const QExplicitlySharedDataPointer< DynamicContext > &context) const |
virtual bool | hasError () const |
virtual | ~AtomicValue () |
Public Functions inherited from QSharedData | |
QSharedData () | |
Constructs a QSharedData object with a reference count of 0. More... | |
QSharedData (const QSharedData &) | |
Constructs a QSharedData object with reference count 0. More... | |
Public Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
const TCastTarget * | as () const |
TCastTarget * | as () |
Static Public Functions | |
static DayTimeDuration::Ptr | fromComponents (const bool isPositive, const DayCountProperty days, const HourProperty hours, const MinuteProperty minutes, const SecondProperty seconds, const MSecondProperty mseconds) |
static DayTimeDuration::Ptr | fromLexical (const QString &string) |
static DayTimeDuration::Ptr | fromSeconds (const SecondCountProperty secs, const MSecondProperty msecs=0) |
Static Public Functions inherited from QPatternist::AtomicValue | |
static ItemType::Ptr | qtToXDMType (const QXmlItem &item) |
static QVariant | toQt (const AtomicValue *const value) |
static QVariant | toQt (const AtomicValue::Ptr &value) |
static Item | toXDM (const QVariant &value) |
Protected Functions | |
DayTimeDuration (const bool isPositive, const DayCountProperty days, const HourProperty hours, const MinuteProperty minutes, const SecondProperty seconds, const MSecondProperty mseconds) | |
Protected Functions inherited from QPatternist::AbstractDuration | |
AbstractDuration (const bool isPos) | |
Protected Functions inherited from QPatternist::AtomicValue | |
AtomicValue () | |
Protected Functions inherited from QPatternist::CppCastingHelper< AtomicValue > | |
CppCastingHelper () | |
Properties | |
const DayCountProperty | m_days |
const HourProperty | m_hours |
const MinuteProperty | m_minutes |
const MSecondProperty | m_mseconds |
const SecondProperty | m_seconds |
Friends | |
class | CommonValues |
Additional Inherited Members | |
Public Variables inherited from QSharedData | |
QAtomicInt | ref |
Static Protected Functions inherited from QPatternist::AbstractDuration | |
static AtomicValue::Ptr | create (const CaptureTable &captTable, const QString &lexical, bool *isPositive, YearProperty *years, MonthProperty *months, DayCountProperty *days, HourProperty *hours, MinuteProperty *minutes, SecondProperty *seconds, MSecondProperty *mseconds) |
static QString | serializeMSeconds (const MSecondProperty mseconds) |
Protected Variables inherited from QPatternist::AbstractDuration | |
const bool | m_isPositive |
Implements the value instance of the xs:dayTimeDuration
type.
Definition at line 70 of file qdaytimeduration_p.h.
Definition at line 74 of file qdaytimeduration_p.h.
|
protected |
Definition at line 52 of file qdaytimeduration.cpp.
Referenced by fromComponents(), fromLexical(), and fromSeconds().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 217 of file qdaytimeduration.cpp.
Referenced by fromLexical(), and fromSeconds().
|
static |
Definition at line 104 of file qdaytimeduration.cpp.
Referenced by QPatternist::AbstractDurationToDayTimeDurationCaster::castFrom().
|
static |
Creates an instance from the lexical representation string
.
Definition at line 66 of file qdaytimeduration.cpp.
Referenced by QPatternist::StringToDayTimeDurationCaster::castFrom().
|
static |
Creates a DayTimeDuration that has the value expressed in seconds secs
and milli seconds msecs
. The signedness of secs
communicates whether this DayTimeDuration is positive or negative. msecs
must always be positive.
Definition at line 119 of file qdaytimeduration.cpp.
Referenced by QPatternist::AbstractDateTimeMathematician::calculate(), and fromValue().
Creates a DayTimeDuration containing the value val
. val
is expressed in milli seconds.
If val
is zero, is CommonValues::DayTimeDurationZero returned.
Implements QPatternist::AbstractDuration.
Definition at line 194 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 222 of file qdaytimeduration.cpp.
Referenced by fromLexical(), and fromSeconds().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 227 of file qdaytimeduration.cpp.
Referenced by fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 212 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 237 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 232 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 133 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 202 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 185 of file qdaytimeduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 207 of file qdaytimeduration.cpp.
|
friend |
Definition at line 132 of file qdaytimeduration_p.h.
|
private |
Definition at line 142 of file qdaytimeduration_p.h.
Referenced by days(), stringValue(), and value().
|
private |
Definition at line 143 of file qdaytimeduration_p.h.
Referenced by hours(), stringValue(), and value().
|
private |
Definition at line 144 of file qdaytimeduration_p.h.
Referenced by minutes(), stringValue(), and value().
|
private |
Definition at line 146 of file qdaytimeduration_p.h.
Referenced by mseconds(), stringValue(), and value().
|
private |
Definition at line 145 of file qdaytimeduration_p.h.
Referenced by seconds(), stringValue(), and value().