本文整理汇总了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);
}
示例2: writeEntry
void Foam::tractionDisplacementFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
writeEntry(os, "traction", traction_);
writeEntry(os, "pressure", pressure_);
writeEntry(os, "value", *this);
}
示例3: writeEntry
void Foam::wallBoilingModels::partitioningModels::
linear::write(Ostream& os) const
{
partitioningModel::write(os);
writeEntry(os, "alphaLiquid1", alphaLiquid1_);
writeEntry(os, "alphaLiquid0", alphaLiquid0_);
}
示例4: writeEntry
void Foam::SRFVelocityFvPatchVectorField::write(Ostream& os) const
{
fvPatchVectorField::write(os);
writeEntry(os, "relative", relative_);
writeEntry(os, "inletValue", inletValue_);
writeEntry(os, "value", *this);
}
示例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);
}
示例6: writeEntry
void Foam::JohnsonJacksonParticleSlipFvPatchVectorField::write
(
Ostream& os
) const
{
fvPatchVectorField::write(os);
writeEntry(os, "specularityCoefficient", specularityCoefficient_);
writeEntry(os, "value", *this);
}
示例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_);
}
示例8: writeEntry
void Foam::epsilonWallFunctionFvPatchScalarField::writeLocalEntries
(
Ostream& os
) const
{
writeEntry(os, "Cmu", Cmu_);
writeEntry(os, "kappa", kappa_);
writeEntry(os, "E", E_);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}