您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ writeEntry函数代码示例

51自学网 2021-06-03 10:04:07
  C++
这篇教程C++ writeEntry函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中writeEntry函数的典型用法代码示例。如果您正苦于以下问题:C++ writeEntry函数的具体用法?C++ writeEntry怎么用?C++ writeEntry使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了writeEntry函数的28个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: writeEntry

void KConfigBase::writeEntry(const char *pKey, const QStringList &list, char sep, bool bPersistent, bool bGlobal, bool bNLS, bool bExpand){    if(list.isEmpty())    {        writeEntry(pKey, QString::fromLatin1(""), bPersistent);        return;    }    QString str_list;    str_list.reserve(4096);    QStringList::ConstIterator it = list.begin();    for(; it != list.end(); ++it)    {        QString value = *it;        uint i;        uint strLength(value.length());        for(i = 0; i < strLength; i++)        {            if(value[i] == sep || value[i] == '//')                str_list += '//';            str_list += value[i];        }        str_list += sep;    }    if(str_list.at(str_list.length() - 1) == sep)        str_list.truncate(str_list.length() - 1);    writeEntry(pKey, str_list, bPersistent, bGlobal, bNLS, bExpand);}
开发者ID:serghei,项目名称:kde3-kdelibs,代码行数:27,


示例2: writeEntry

void Foam::tractionDisplacementFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    writeEntry(os, "traction", traction_);    writeEntry(os, "pressure", pressure_);    writeEntry(os, "value", *this);}
开发者ID:jheylmun,项目名称:OpenFOAM-dev,代码行数:7,


示例3: writeEntry

void Foam::wallBoilingModels::partitioningModels::linear::write(Ostream& os) const{    partitioningModel::write(os);    writeEntry(os, "alphaLiquid1", alphaLiquid1_);    writeEntry(os, "alphaLiquid0", alphaLiquid0_);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:7,


示例4: writeEntry

void Foam::SRFVelocityFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    writeEntry(os, "relative", relative_);    writeEntry(os, "inletValue", inletValue_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:7,


示例5: writeEntry

void Foam::fv::option::writeData(Ostream& os) const{    writeEntry(os, "type", type());    writeEntry(os, "active", active_);    os << nl;    os << indent << word(type() + "Coeffs");    coeffs_.write(os);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:8,


示例6: writeEntry

void Foam::JohnsonJacksonParticleSlipFvPatchVectorField::write(    Ostream& os) const{    fvPatchVectorField::write(os);    writeEntry(os, "specularityCoefficient", specularityCoefficient_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,


示例7: writeEntry

void Foam::porousBafflePressureFvPatchField::write(Ostream& os) const{    fixedJumpFvPatchField<scalar>::write(os);    writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);    writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);    writeEntry(os, "D", D_);    writeEntry(os, "I", I_);    writeEntry(os, "length", length_);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,


示例8: writeEntry

void Foam::epsilonWallFunctionFvPatchScalarField::writeLocalEntries(    Ostream& os) const{    writeEntry(os, "Cmu", Cmu_);    writeEntry(os, "kappa", kappa_);    writeEntry(os, "E", E_);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,


示例9: writeEntry

void alphatJayatillekeWallFunctionFvPatchScalarField::write(Ostream& os) const{    fvPatchField<scalar>::write(os);    writeEntry(os, "Prt", Prt_);    writeEntry(os, "Cmu", Cmu_);    writeEntry(os, "kappa", kappa_);    writeEntry(os, "E", E_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,


示例10: write

void Foam::totalFlowRateAdvectiveDiffusiveFvPatchScalarField::write(Ostream& os) const{    fvPatchField<scalar>::write(os);    writeEntry(os, "phi", phiName_);    writeEntry(os, "rho", rhoName_);    writeEntry(os, "massFluxFraction", massFluxFraction_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:9,


示例11: writeEntry

void Foam::temperatureDependentAlphaContactAngleFvPatchScalarField::write(    Ostream& os) const{    alphaContactAngleFvPatchScalarField::write(os);    writeEntryIfDifferent<word>(os, "T", "T", TName_);    writeEntry(os, theta0_());    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:10,


示例12: writeEntry

void Foam::JohnsonJacksonParticleThetaFvPatchScalarField::write(    Ostream& os) const{    fvPatchScalarField::write(os);    writeEntry(os, "restitutionCoefficient", restitutionCoefficient_);    writeEntry(os, "specularityCoefficient", specularityCoefficient_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:10,


示例13: writeEntry

void Foam::inletOutletTotalTemperatureFvPatchScalarField::write(Ostream& os)const{    fvPatchScalarField::write(os);    writeEntryIfDifferent<word>(os, "U", "U", UName_);    writeEntryIfDifferent<word>(os, "phi", "phi", this->phiName_);    writeEntryIfDifferent<word>(os, "psi", "psi", psiName_);    writeEntry(os, "gamma", gamma_);    writeEntry(os, "T0", T0_);    writeEntry(os, "value", *this);}
开发者ID:jheylmun,项目名称:OpenFOAM-dev,代码行数:11,


示例14: writeEntry

void Foam::variableHeightFlowRateFvPatchScalarField::write(Ostream& os) const{    fvPatchScalarField::write(os);    if (phiName_ != "phi")    {        writeEntry(os, "phi", phiName_);    }    writeEntry(os, "lowerBound", lowerBound_);    writeEntry(os, "upperBound", upperBound_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:11,


示例15: writeEntry

void Foam::inclinedFilmNusseltHeightFvPatchScalarField::write(    Ostream& os) const{    fixedValueFvPatchScalarField::write(os);    writeEntry(os, GammaMean_());    writeEntry(os, a_());    writeEntry(os, omega_());    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:11,


示例16: imp_

QgsProject::QgsProject()    : imp_( new QgsProject::Imp ){  // Set some default project properties  // XXX THESE SHOULD BE MOVED TO STATUSBAR RELATED SOURCE  writeEntry( "PositionPrecision", "/Automatic", true );  writeEntry( "PositionPrecision", "/DecimalPlaces", 2 );  // XXX writeEntry() makes the project dirty, but it doesn't make sense  // for a new project to be dirty, so let's clean it up  dirty( false );} // QgsProject ctor
开发者ID:HydroCouple,项目名称:FVHMComponent,代码行数:11,


示例17: writeEntry

void Foam::phaseHydrostaticPressureFvPatchScalarField::write(Ostream& os) const{    fvPatchScalarField::write(os);    if (phaseFraction_ != "alpha")    {        writeEntry(os, "phaseFraction", phaseFraction_);    }    writeEntry(os, "rho", rho_);    writeEntry(os, "pRefValue", pRefValue_);    writeEntry(os, "pRefPoint", pRefPoint_);    writeEntry(os, "value", *this);}
开发者ID:OpenFOAM,项目名称:OpenFOAM-dev,代码行数:12,


示例18: writeEntry

void JSONObject::writeOrder(std::ostream& str, const std::vector<std::string>& order, WriteVisitor& visitor){    str << "{" << std::endl;    JSONObjectBase::level++;    for (unsigned int i = 0; i < order.size(); i++) {        writeEntry(str, order[i], _maps, visitor);    }    while(!_maps.empty()) {        std::string key = _maps.begin()->first;        writeEntry(str, key, _maps, visitor);    }    JSONObjectBase::level--;    str << std::endl << JSONObjectBase::indent() << "}";}
开发者ID:jothikannan,项目名称:osg,代码行数:16,


示例19: writeEntry

void inviscidWallPFvPatchScalarField::write(Ostream& os) const{    fixedGradientFvPatchScalarField::write(os);    os.writeKeyword("fluxFraction")        << fluxFraction_ << token::END_STATEMENT << nl;    writeEntry("value", os);}
开发者ID:GoldenMan123,项目名称:openfoam-extend-foam-extend-3.1,代码行数:7,


示例20: writeEntry

void fixedTractionFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    traction_.writeEntry("traction", os);    pressure_.writeEntry("pressure", os);    writeEntry("value", os);}
开发者ID:Tiat,项目名称:poroElasticSolver,代码行数:7,


示例21: writeEntry

void Foam::interstitialInletVelocityFvPatchVectorField::write(Ostream& os) const{    fvPatchField<vector>::write(os);    os.writeEntryIfDifferent<word>("alpha", "alpha", alphaName_);    inletVelocity_.writeEntry("inletVelocity", os);    writeEntry("value", os);}
开发者ID:mattijsjanssens,项目名称:mattijs-extensions,代码行数:7,


示例22: writeEntry

void Foam::SRFVelocityFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    os.writeKeyword("relative") << relative_ << token::END_STATEMENT << nl;    inletValue_.writeEntry("inletValue", os);    writeEntry("value", os);}
开发者ID:EricAlex,项目名称:OpenFOAM-dev,代码行数:7,


示例23: writeEntry

void Foam::fluxCorrectedVelocityFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    writeEntryIfDifferent<word>(os, "phi", "phi", phiName_);    writeEntryIfDifferent<word>(os, "rho", "rho", rhoName_);    writeEntry("value", os);}
开发者ID:Kiiree,项目名称:RapidCFD-dev,代码行数:7,


示例24: writeEntry

void sixDoFRigidBodyDisplacementPointPatchVectorField::write(Ostream& os) const{    pointPatchField<vector>::write(os);    os.writeKeyword("rhoName") << rhoName_ << token::END_STATEMENT << nl;    if (rhoName_ == "rhoInf")    {        os.writeKeyword("rhoInf") << rhoInf_ << token::END_STATEMENT << nl;    }    if (lookupGravity_ == 0 || lookupGravity_ == -2)    {        os.writeKeyword("g") << g_ << token::END_STATEMENT << nl;    }    os.writeKeyword("relaxationFactor")        << relaxationFactor_ << token::END_STATEMENT << nl;    motion_.write(os);    initialPoints_.writeEntry("initialPoints", os);    writeEntry("value", os);}
开发者ID:0184561,项目名称:OpenFOAM-2.1.x,代码行数:25,


示例25: writeEntry

void alphatWallFunctionFvPatchScalarField::write(Ostream& os) const{    fvPatchField<scalar>::write(os);    writeEntryIfDifferent<word>(os, "mut", "mut", mutName_);    os.writeKeyword("Prt") << Prt_ << token::END_STATEMENT << nl;    writeEntry("value", os);}
开发者ID:0184561,项目名称:OpenFOAM-2.1.x,代码行数:7,


示例26: writeEntry

// Writevoid tractionDisplacementFvPatchVectorField::write(Ostream& os) const{    fvPatchVectorField::write(os);    traction_.writeEntry("traction", os);    pressure_.writeEntry("pressure", os);    writeEntry("value", os);}
开发者ID:Haider-BA,项目名称:foam-extend-3.0,代码行数:8,


示例27: Q_ASSERT_X

void KConfigGroup::writeEntry(const QString &key, const char *value, WriteConfigFlags pFlags){    Q_ASSERT_X(isValid(), "KConfigGroup::writeEntry", "accessing an invalid group");    Q_ASSERT_X(!d->bConst, "KConfigGroup::writeEntry", "writing to a read-only group");    writeEntry(key.toUtf8().constData(), QVariant(QString::fromLatin1(value)), pFlags);}
开发者ID:crayonink,项目名称:calligra-2,代码行数:7,


示例28: writeLocalEntries

void nutkAtmRoughWallFunctionFvPatchScalarField::write(Ostream& os) const{    fvPatchField<scalar>::write(os);    writeLocalEntries(os);    z0_.writeEntry("z0", os);    writeEntry("value", os);}
开发者ID:BijanZarif,项目名称:OpenFOAM-2.4.0-MNF,代码行数:7,



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


C++ writeError函数代码示例
C++ writeEntityList函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。