![]() |
Qt 4.8
|
Implements the value instance of the xs:duration type.
More...
#include <qduration_p.h>
Public Types | |
| typedef AtomicValue::Ptr | 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 Duration::Ptr | fromComponents (const bool isPositive, const YearProperty years, const MonthProperty months, const DayCountProperty days, const HourProperty hours, const MinuteProperty minutes, const SecondProperty seconds, const MSecondProperty mseconds) |
| static Duration::Ptr | fromLexical (const QString &string) |
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 | |
| Duration (const bool isPositive, const YearProperty years, const MonthProperty months, 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 MonthProperty | m_months |
| const MSecondProperty | m_mseconds |
| const SecondProperty | m_seconds |
| const YearProperty | m_years |
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:duration type.
Definition at line 69 of file qduration_p.h.
Definition at line 72 of file qduration_p.h.
|
protected |
Definition at line 52 of file qduration.cpp.
Referenced by fromComponents(), and fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 214 of file qduration.cpp.
Referenced by fromLexical().
|
static |
Definition at line 113 of file qduration.cpp.
Referenced by QPatternist::AbstractDurationToDurationCaster::castFrom().
|
static |
Creates an instance from the lexical representation string.
Definition at line 70 of file qduration.cpp.
Referenced by QPatternist::StringToDurationCaster::castFrom().
Always results in an assert crash. Calling this function makes no sense due to that the value space of xs:duration is not well defined.
Implements QPatternist::AbstractDuration.
Definition at line 133 of file qduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 219 of file qduration.cpp.
Referenced by fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 224 of file qduration.cpp.
Referenced by fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 209 of file qduration.cpp.
Referenced by fromLexical().
|
virtual |
|
virtual |
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 140 of file qduration.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 239 of file qduration.cpp.
|
virtual |
Always results in an assert crash. Calling this function makes no sense due to that the value space of xs:duration is not well defined.
Implements QPatternist::AbstractDuration.
Definition at line 126 of file qduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 204 of file qduration.cpp.
Referenced by fromLexical().
|
friend |
Definition at line 111 of file qduration_p.h.
|
private |
Definition at line 124 of file qduration_p.h.
Referenced by days(), and stringValue().
|
private |
Definition at line 125 of file qduration_p.h.
Referenced by hours(), and stringValue().
|
private |
Definition at line 126 of file qduration_p.h.
Referenced by minutes(), and stringValue().
|
private |
Definition at line 123 of file qduration_p.h.
Referenced by months(), and stringValue().
|
private |
Definition at line 128 of file qduration_p.h.
Referenced by mseconds(), and stringValue().
|
private |
Definition at line 127 of file qduration_p.h.
Referenced by seconds(), and stringValue().
|
private |
Definition at line 122 of file qduration_p.h.
Referenced by stringValue(), and years().