本文整理汇总了C++中qstringlist::const_iterator::section方法的典型用法代码示例。如果您正苦于以下问题:C++ const_iterator::section方法的具体用法?C++ const_iterator::section怎么用?C++ const_iterator::section使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类qstringlist::const_iterator
的用法示例。
在下文中一共展示了const_iterator::section方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: QObject
QgsWFSData::QgsWFSData(
const QString& uri,
QgsRectangle* extent,
QMap<QgsFeatureId, QgsFeature*> &features,
QMap<QgsFeatureId, QString > &idMap,
const QString& geometryAttribute,
const QMap<QString, QPair<int, QgsField> >& thematicAttributes,
QGis::WkbType* wkbType )
: QObject(),
mUri( uri ),
mExtent( extent ),
mFeatures( features ),
mIdMap( idMap ),
mGeometryAttribute( geometryAttribute ),
mThematicAttributes( thematicAttributes ),
mWkbType( wkbType ),
mFinished( false ),
mFeatureCount( 0 )
{
//find out mTypeName from uri
QStringList arguments = uri.split( "&" );
QStringList::const_iterator it;
for ( it = arguments.constBegin(); it != arguments.constEnd(); ++it )
{
if ( it->startsWith( "TYPENAME", Qt::CaseInsensitive ) )
{
mTypeName = it->section( "=", 1, 1 );
//and strip away namespace prefix
QStringList splitList = mTypeName.split( ":" );
if ( splitList.size() > 1 )
{
mTypeName = splitList.at( 1 );
}
QgsDebugMsg( QString( "mTypeName is: %1" ).arg( mTypeName ) );
}
}
mEndian = QgsApplication::endian();
}
示例2: QObject
QgsWFSData::QgsWFSData(
const QString& uri,
QgsRectangle* extent,
QgsCoordinateReferenceSystem* srs,
QList<QgsFeature*> &features,
const QString& geometryAttribute,
const QSet<QString>& thematicAttributes,
QGis::WkbType* wkbType )
: QObject(),
mUri( uri ),
mExtent( extent ),
mSrs( srs ),
mFeatures( features ),
mGeometryAttribute( geometryAttribute ),
mThematicAttributes( thematicAttributes ),
mWkbType( wkbType ),
mFinished( false ),
mFeatureCount( 0 )
{
//qWarning("Name of the geometry attribute is:");
//qWarning(mGeometryAttribute.toLocal8Bit().data());
//find out mTypeName from uri
QStringList arguments = uri.split( "&" );
QStringList::const_iterator it;
for ( it = arguments.constBegin(); it != arguments.constEnd(); ++it )
{
if ( it->startsWith( "TYPENAME", Qt::CaseInsensitive ) )
{
mTypeName = it->section( "=", 1, 1 );
qWarning( "mTypeName is: %s", mTypeName.toLocal8Bit().constData() );
}
}
mEndian = QgsApplication::endian();
QObject::connect( &mHttp, SIGNAL( done( bool ) ), this, SLOT( setFinished( bool ) ) );
}