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


C++ writeEntry函数代码示例

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


在下文中一共展示了writeEntry函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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,代码来源:kconfigbase.cpp

示例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,代码来源:tractionDisplacementFvPatchVectorField.C

示例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,代码来源:linear.C

示例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,代码来源:SRFVelocityFvPatchVectorField.C

示例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,代码来源:fvOptionIO.C

示例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,代码来源:JohnsonJacksonParticleSlipFvPatchVectorField.C

示例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,代码来源:porousBafflePressureFvPatchField.C

示例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,代码来源:epsilonWallFunctionFvPatchScalarField.C

示例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,代码来源:alphatJayatillekeWallFunctionFvPatchScalarField.C

示例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,代码来源:totalFlowRateAdvectiveDiffusiveFvPatchScalarField.C

示例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,代码来源:temperatureDependentAlphaContactAngleFvPatchScalarField.C

示例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,代码来源:JohnsonJacksonParticleThetaFvPatchScalarField.C

示例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,代码来源:inletOutletTotalTemperatureFvPatchScalarField.C

示例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,代码来源:variableHeightFlowRateFvPatchField.C

示例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,代码来源:inclinedFilmNusseltHeightFvPatchScalarField.C


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