Qt 4.8
|
Implements the value instance of the xs:yearMonthDuration
type.
More...
#include <qyearmonthduration_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 YearMonthDuration::Ptr | fromComponents (const bool isPositive, const YearProperty years, const MonthProperty months) |
static YearMonthDuration::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 | |
YearMonthDuration (const bool isPositive, const YearProperty years, const MonthProperty months) | |
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 MonthProperty | m_months |
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:yearMonthDuration
type.
Definition at line 69 of file qyearmonthduration_p.h.
Definition at line 72 of file qyearmonthduration_p.h.
|
protected |
Definition at line 51 of file qyearmonthduration.cpp.
Referenced by fromComponents(), and fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 160 of file qyearmonthduration.cpp.
|
static |
Definition at line 84 of file qyearmonthduration.cpp.
Referenced by QPatternist::AbstractDurationToYearMonthDurationCaster::castFrom(), and fromValue().
|
static |
Creates an instance from the lexical representation string
.
Definition at line 60 of file qyearmonthduration.cpp.
Referenced by QPatternist::StringToYearMonthDurationCaster::castFrom().
If val
is zero, is CommonValues::YearMonthDurationZero returned.
Implements QPatternist::AbstractDuration.
Definition at line 132 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 165 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 170 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 155 of file qyearmonthduration.cpp.
Referenced by fromLexical().
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 180 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 175 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 91 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AtomicValue.
Definition at line 145 of file qyearmonthduration.cpp.
|
virtual |
xs:yearMonthDuration
in months. Implements QPatternist::AbstractDuration.
Definition at line 127 of file qyearmonthduration.cpp.
|
virtual |
Implements QPatternist::AbstractDuration.
Definition at line 150 of file qyearmonthduration.cpp.
Referenced by fromLexical().
|
friend |
Definition at line 135 of file qyearmonthduration_p.h.
|
private |
Definition at line 143 of file qyearmonthduration_p.h.
Referenced by months(), stringValue(), and value().
|
private |
Definition at line 142 of file qyearmonthduration_p.h.
Referenced by stringValue(), value(), and years().