当前位置: 首页>>代码示例>>C++>>正文


C++ IOOptions::isEmpty方法代码示例

本文整理汇总了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);
}
开发者ID:maduhu,项目名称:IlwisConnectors,代码行数:7,代码来源:postgresqltableconnector.cpp

示例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;
}
开发者ID:MartinSchouwenburg,项目名称:IlwisTest,代码行数:11,代码来源:postgresqlfeatureconnector.cpp

示例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;
}
开发者ID:maduhu,项目名称:IlwisConnectors,代码行数:12,代码来源:postgresqltableconnector.cpp

示例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;
}
开发者ID:MartinSchouwenburg,项目名称:IlwisTest,代码行数:13,代码来源:postgresqlfeatureconnector.cpp

示例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;
}
开发者ID:maduhu,项目名称:IlwisCore,代码行数:19,代码来源:catalogconnector.cpp

示例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;
}
开发者ID:maduhu,项目名称:IlwisConnectors,代码行数:22,代码来源:postgresqltableconnector.cpp

示例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;
}
开发者ID:52North,项目名称:IlwisConnectors,代码行数:23,代码来源:wfsfeatureconnector.cpp


注:本文中的IOOptions::isEmpty方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。