本文整理汇总了C++中DataDefnBlk::VolatileTags方法的典型用法代码示例。如果您正苦于以下问题:C++ DataDefnBlk::VolatileTags方法的具体用法?C++ DataDefnBlk::VolatileTags怎么用?C++ DataDefnBlk::VolatileTags使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataDefnBlk
的用法示例。
在下文中一共展示了DataDefnBlk::VolatileTags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BuildDataDefn
void FlashTank::BuildDataDefn(DataDefnBlk &DDB)
{
DDB.BeginStruct(this);
DDB.Double ("Pressure", "P", DC_P, "kPag", xidPMean, this, 0);
DDB.Double ("Temperature", "T", DC_T, "C", xidTemp, this, 0);
DDB.Double ("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, 0);
DDB.Double ("Level", "Lvl", DC_Frac, "%", xidLevel, this, 0);
DDB.Text ("Datum");
DDB.Double ("Datum", "Z", DC_L , "m", &dDatum, this, isResult|0 | DYNMODE);
DDB.Double ("Datum_Rqd", "Z_Rqd",DC_L , "m", &dDatum_Rqd, this, isParmStopped | DYNMODE|NAN_OK);
DDB.Text (" ");
DDB.Double ("POffset", "", DC_DP, "kPa", &POffset, this, 0);
DDB.Text ("");
DDB.CheckBoxBtn("Closed", "", DC_ , "", xidClosed, this,
isParmStopped|(!gs_Environment.OK() ? noView|noFile|noSnap|noScenario:0) , DDBYesNo);
DDB.CheckBoxBtn("Networked", "", DC_ , "", xidNetPressDamp, this,
isParmStopped|(!gs_Environment.OK() || !Contents.Closed() ? noView|noFile|noSnap|noScenario:0) , DDBYesNo);
VLE.Add_OnOff(DDB);
VLE.BuildDataDefn(DDB, NULL, NULL, DDB_RqdPage, 0);
if (SolveMode()==DYNMODE)
{
DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
DDB.Object(&PresetImg, this, NULL, NULL, DDB_RqdPage);
}
DDB.Page("IOs");
Strng Commnt, Nm;
for (int i=0; i<NoFlwIOs(); i++)
{
Nm.Set("IO_%02i", i);
DDB.Double(Nm(), "", DC_Qm , "kg/s", xidIO_Qm0+i, this, 0);
#ifndef UsingZTagObj
DDB.VolatileTags(Nm(), Nm());
#endif
Commnt.Set("%s", Nd_Rmt(i)->FullObjTag());
DDB.TagComment(Commnt());
}
DDB.Double("IO_Sigma", "", DC_Qm , "kg/s", xidIO_QmSigma, this, 0);
DDB.EndStruct();
};