Qt 4.8
Public Functions | Public Variables | List of all members
QPatternist::AbstractDuration::CaptureTable Class Reference

Acts as a mapping table for AbstractDuration::create() and describes where certain fields in a QRegExp pattern can be found for a particular W3C XML Schema duration type. More...

#include <qabstractduration_p.h>

Public Functions

 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)
 

Public Variables

const qint8 day
 
const qint8 hour
 
const qint8 minutes
 
const qint8 month
 
const qint8 mseconds
 
const QRegExp regExp
 
const qint8 seconds
 
const qint8 tDelimiter
 
const qint8 year
 

Detailed Description

Acts as a mapping table for AbstractDuration::create() and describes where certain fields in a QRegExp pattern can be found for a particular W3C XML Schema duration type.

Author
Frans Englich frans.nosp@m..eng.nosp@m.lich@.nosp@m.noki.nosp@m.a.com

Definition at line 94 of file qabstractduration_p.h.

Constructors and Destructors

◆ CaptureTable()

QPatternist::AbstractDuration::CaptureTable::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 
)
inline

Definition at line 97 of file qabstractduration_p.h.

105  : regExp(exp),
106  year(yearP),
107  month(monthP),
108  day(dayP),
109  tDelimiter(tDelimiterP),
110  hour(hourP),
111  minutes(minutesP),
112  seconds(secondsP),
113  mseconds(msecondsP)
114  {
115  Q_ASSERT(exp.isValid());
116  Q_ASSERT(yearP == -1 || yearP == 2);
117  }
#define Q_ASSERT(cond)
Definition: qglobal.h:1823
bool isValid() const
Returns true if the regular expression is valid; otherwise returns false.
Definition: qregexp.cpp:3943

Properties

◆ day

const qint8 QPatternist::AbstractDuration::CaptureTable::day

Definition at line 122 of file qabstractduration_p.h.

◆ hour

const qint8 QPatternist::AbstractDuration::CaptureTable::hour

Definition at line 124 of file qabstractduration_p.h.

◆ minutes

const qint8 QPatternist::AbstractDuration::CaptureTable::minutes

Definition at line 125 of file qabstractduration_p.h.

◆ month

const qint8 QPatternist::AbstractDuration::CaptureTable::month

Definition at line 121 of file qabstractduration_p.h.

◆ mseconds

const qint8 QPatternist::AbstractDuration::CaptureTable::mseconds

Definition at line 127 of file qabstractduration_p.h.

◆ regExp

const QRegExp QPatternist::AbstractDuration::CaptureTable::regExp

Definition at line 119 of file qabstractduration_p.h.

Referenced by QPatternist::AbstractDuration::create().

◆ seconds

const qint8 QPatternist::AbstractDuration::CaptureTable::seconds

Definition at line 126 of file qabstractduration_p.h.

◆ tDelimiter

const qint8 QPatternist::AbstractDuration::CaptureTable::tDelimiter

Definition at line 123 of file qabstractduration_p.h.

◆ year

const qint8 QPatternist::AbstractDuration::CaptureTable::year

Definition at line 120 of file qabstractduration_p.h.


The documentation for this class was generated from the following file: