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

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

#include <qabstractdatetime_p.h>

Public Functions

 CaptureTable (const QRegExp &exp, const qint8 zoneOffsetSignP, const qint8 zoneOffsetHourP, const qint8 zoneOffsetMinuteP, const qint8 zoneOffsetUTCSymbolP, const qint8 yearP, const qint8 monthP=-1, const qint8 dayP=-1, const qint8 hourP=-1, const qint8 minutesP=-1, const qint8 secondsP=-1, const qint8 msecondsP=-1, const qint8 yearSignP=-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 year
 
const qint8 yearSign
 
const qint8 zoneOffsetHour
 
const qint8 zoneOffsetMinute
 
const qint8 zoneOffsetSign
 
const qint8 zoneOffsetUTCSymbol
 

Detailed Description

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

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

Definition at line 111 of file qabstractdatetime_p.h.

Constructors and Destructors

◆ CaptureTable()

QPatternist::AbstractDateTime::CaptureTable::CaptureTable ( const QRegExp exp,
const qint8  zoneOffsetSignP,
const qint8  zoneOffsetHourP,
const qint8  zoneOffsetMinuteP,
const qint8  zoneOffsetUTCSymbolP,
const qint8  yearP,
const qint8  monthP = -1,
const qint8  dayP = -1,
const qint8  hourP = -1,
const qint8  minutesP = -1,
const qint8  secondsP = -1,
const qint8  msecondsP = -1,
const qint8  yearSignP = -1 
)
inline

Definition at line 114 of file qabstractdatetime_p.h.

126  : regExp(exp)
127  , zoneOffsetSign(zoneOffsetSignP)
128  , zoneOffsetHour(zoneOffsetHourP)
129  , zoneOffsetMinute(zoneOffsetMinuteP)
130  , zoneOffsetUTCSymbol(zoneOffsetUTCSymbolP)
131  , year(yearP)
132  , month(monthP)
133  , day(dayP)
134  , hour(hourP)
135  , minutes(minutesP)
136  , seconds(secondsP)
137  , mseconds(msecondsP)
138  , yearSign(yearSignP)
139  {
140  Q_ASSERT(exp.isValid());
141  }
#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::AbstractDateTime::CaptureTable::day

Definition at line 150 of file qabstractdatetime_p.h.

◆ hour

const qint8 QPatternist::AbstractDateTime::CaptureTable::hour

Definition at line 151 of file qabstractdatetime_p.h.

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

◆ minutes

const qint8 QPatternist::AbstractDateTime::CaptureTable::minutes

Definition at line 152 of file qabstractdatetime_p.h.

◆ month

const qint8 QPatternist::AbstractDateTime::CaptureTable::month

Definition at line 149 of file qabstractdatetime_p.h.

◆ mseconds

const qint8 QPatternist::AbstractDateTime::CaptureTable::mseconds

Definition at line 154 of file qabstractdatetime_p.h.

◆ regExp

const QRegExp QPatternist::AbstractDateTime::CaptureTable::regExp

Definition at line 143 of file qabstractdatetime_p.h.

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

◆ seconds

const qint8 QPatternist::AbstractDateTime::CaptureTable::seconds

Definition at line 153 of file qabstractdatetime_p.h.

◆ year

const qint8 QPatternist::AbstractDateTime::CaptureTable::year

Definition at line 148 of file qabstractdatetime_p.h.

◆ yearSign

const qint8 QPatternist::AbstractDateTime::CaptureTable::yearSign

Definition at line 155 of file qabstractdatetime_p.h.

◆ zoneOffsetHour

const qint8 QPatternist::AbstractDateTime::CaptureTable::zoneOffsetHour

Definition at line 145 of file qabstractdatetime_p.h.

◆ zoneOffsetMinute

const qint8 QPatternist::AbstractDateTime::CaptureTable::zoneOffsetMinute

Definition at line 146 of file qabstractdatetime_p.h.

◆ zoneOffsetSign

const qint8 QPatternist::AbstractDateTime::CaptureTable::zoneOffsetSign

Definition at line 144 of file qabstractdatetime_p.h.

◆ zoneOffsetUTCSymbol

const qint8 QPatternist::AbstractDateTime::CaptureTable::zoneOffsetUTCSymbol

Definition at line 147 of file qabstractdatetime_p.h.


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