52 #ifndef Patternist_AbstractDuration_H 53 #define Patternist_AbstractDuration_H 100 const qint8 dayP = -1,
101 const qint8 tDelimiterP = -1,
102 const qint8 hourP = -1,
103 const qint8 minutesP = -1,
104 const qint8 secondsP = -1,
116 Q_ASSERT(yearP == -1 || yearP == 2);
151 virtual Value
value()
const = 0;
#define QT_END_NAMESPACE
This macro expands to.
Base class for classes implementing durations.
The QRegExp class provides pattern matching using regular expressions.
Due to strong interdependencies, this file contains the definitions for the classes Item...
The QExplicitlySharedDataPointer class represents a pointer to an explicitly shared object...
The QString class provides a Unicode character string.
bool isValid() const
Returns true if the regular expression is valid; otherwise returns false.
virtual MonthProperty months() const =0
#define QT_BEGIN_NAMESPACE
This macro expands to.
virtual Value value() const =0
virtual DayCountProperty days() const =0
Base class for all classes representing atomic values.
The namespace for the internal API of QtXmlPatterns.
virtual HourProperty hours() const =0
virtual YearProperty years() const =0
qint64 Value
The amount in milli seconds.
Represents an item in the XPath 2.0 Data Model.
AbstractDuration(const bool isPos)
bool operator==(const AbstractDuration &other) const
CaptureTable(const QRegExp &exp, const qint8 yearP, const qint8 monthP, const qint8 dayP=-1, const qint8 tDelimiterP=-1, const qint8 hourP=-1, const qint8 minutesP=-1, const qint8 secondsP=-1, const qint8 msecondsP=-1)
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)
virtual Item fromValue(const Value val) const =0
Acts as a mapping table for AbstractDuration::create() and describes where certain fields in a QRegEx...
static QString serializeMSeconds(const MSecondProperty mseconds)
QExplicitlySharedDataPointer< AbstractDuration > Ptr