本文整理汇总了C++中IOOptions::isEmpty方法的典型用法代码示例。如果您正苦于以下问题:C++ IOOptions::isEmpty方法的具体用法?C++ IOOptions::isEmpty怎么用?C++ IOOptions::isEmpty使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类IOOptions
的用法示例。
在下文中一共展示了IOOptions::isEmpty方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: loadMetaData
bool PostgresqlTableConnector::loadMetaData(IlwisObject *data, const IOOptions& options)
{
Table *table = static_cast<Table *>(data);
IOOptions iooptions = options.isEmpty() ? this->ioOptions() : options;
PostgresqlTableLoader loader = PostgresqlTableLoader(source(), iooptions);
return loader.loadMetadata(table);
}
示例2: loadData
bool PostgresqlFeatureConnector::loadData(IlwisObject *data, const IOOptions& options)
{
if ( _binaryIsLoaded)
return true;
FeatureCoverage *fcoverage = static_cast<FeatureCoverage *>(data);
IOOptions iooptions = options.isEmpty() ? this->ioOptions() : options;
PostgresqlFeatureCoverageLoader loader = PostgresqlFeatureCoverageLoader(sourceRef(), iooptions);
bool ok = loader.loadData(fcoverage);
_binaryIsLoaded = ok;
return ok;
}
示例3: loadData
bool PostgresqlTableConnector::loadData(IlwisObject *data,const IOOptions& options)
{
Table *table = static_cast<Table *>(data);
IOOptions iooptions = options.isEmpty() ? this->ioOptions() : options;
PostgresqlTableLoader loader = PostgresqlTableLoader(source(), iooptions);
if ( !loader.loadMetadata(table)) {
return false;
}
bool ok = loader.loadData(table);
_binaryIsLoaded = ok;
return ok;
}
示例4: loadMetaData
bool PostgresqlFeatureConnector::loadMetaData(IlwisObject *data, const IOOptions &options)
{
FeatureCoverage *fcoverage = static_cast<FeatureCoverage *>(data);
IOOptions iooptions = options.isEmpty() ? this->ioOptions() : options;
PostgresqlFeatureCoverageLoader loader = PostgresqlFeatureCoverageLoader(sourceRef(), iooptions);
if ( !loader.loadMetadata(fcoverage)) {
ERROR1(ERR_NO_INITIALIZED_1, sourceRef().name());
return false;
}
return true;
}
示例5: loadDataSingleThread
bool CatalogConnector::loadDataSingleThread(IlwisObject *obj, const IOOptions &options){
Catalog *cat = static_cast<Catalog *>(obj);
kernel()->issues()->log(QString(TR("Scanning %1")).arg(sourceRef().url(true).toString()),IssueObject::itMessage);
for(const auto& explorer : _dataProviders){
// TODO clear security issues which may arise here, as
// all _dataProviders gets passed the ioptions probably
// not indendet for them
IOOptions iooptions = options.isEmpty() ? ioOptions() : options;
std::vector<Resource> items = explorer->loadItems(iooptions);
cat->addItemsPrivate(items);
mastercatalog()->addItems(items);
}
return true;
}
示例6: store
bool PostgresqlTableConnector::store(IlwisObject *data, const IOOptions& options)
{
Table *table = static_cast<Table *>(data);
IOOptions iooptions = options.isEmpty() ? this->ioOptions() : options;
PostgresqlParameters params (_resource.url(true).toString());
PostgresqlDatabaseUtil pgUtil(params);
SqlStatementHelper sqlHelper(params);
QList<QString> primaryKeys;
pgUtil.getPrimaryKeys(primaryKeys);
sqlHelper.addCreateTempTableStmt("data_level_0");
sqlHelper.addInsertChangedDataToTempTableStmt("data_level_0", table);
sqlHelper.addUpdateStmt(primaryKeys, "data_level_0", table);
sqlHelper.addInsertStmt(primaryKeys, "data_level_0", table);
// TODO delete deleted rows
//qDebug() << "SQL: " << sqlHelper->sql();
pgUtil.doQuery(sqlHelper.sql());
return true;
}
示例7: loadData
bool WfsFeatureConnector::loadData(IlwisObject *data, const IOOptions &options)
{
qDebug() << "WfsFeatureConnector::loadData()";
IOOptions iooptions = options.isEmpty() ? ioOptions() : options;
//if(!loadMetaData(data, iooptions))
// return false;
FeatureCoverage *fcoverage = static_cast<FeatureCoverage *>(data);
QUrl featureUrl = sourceRef().url(true);
WebFeatureService wfs(featureUrl);
QUrlQuery queryFeature(featureUrl);
SPWfsResponse response = wfs.getFeature(queryFeature);
WfsFeatureParser featureParser(response, fcoverage);
featureParser.context(_context);
featureParser.parseFeatureMembers();
_binaryIsLoaded = true;
return _binaryIsLoaded;
}