本文整理汇总了C++中DataDefnBlk::Double方法的典型用法代码示例。如果您正苦于以下问题:C++ DataDefnBlk::Double方法的具体用法?C++ DataDefnBlk::Double怎么用?C++ DataDefnBlk::Double使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataDefnBlk
的用法示例。
在下文中一共展示了DataDefnBlk::Double方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BuildDataDefn
void Flare::BuildDataDefn(DataDefnBlk &DDB)
{
// if (Page & 0x1)
DDB.BeginStruct(this);
DDB.Page ("Page 1");
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 ("Mass_Flow", "Qm", DC_Qm, "kg/s", xidQm, this, 0); // ,NDT_ZERODEFAULT|NDT_SGN )
DDB.Double ("Vol_Flow", "Qv", DC_Qm, "m^3/h", xidQv, this, 0); // ,NDT_SGN )
DDB.Text (" ");
DDB.Double ("Press_Input", "PiR", DC_P, "kPag", xidPInRmt, this, 0); // ,NDT_SGN )
DDB.Text (" ");
// }
// if (Page & 0x2)
// {
DDB.Page ("Page 2");
DDB.String ("Flare", "", DC_, "", &FlareTag, this, isParm);
DDB.Text (" ");
// }
DDB.EndStruct();
};
示例2: BuildDataDefn
void CEC_EquilTXPoly::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.Text ("EquilTXPoly");
DDEF_Flags VFlags=DDB.GetVisibility();
DDB.String("ExtentType", "", DC_, "", xid_RCTExtentType, &Eq, SetOnChange|isParm, DDBExtentTypes);
DDB.SetVisibility(VFlags);
DDB.Double("K_Eq", "", DC_, "", &dK_Eq, &Eq, isResult);
DDB.Double("K_Act", "", DC_, "", &dK_Act, &Eq, isResult);
DDB.Double("ExtentError", "", DC_Frac, "%", xid_ExtentError, &Eq, isResult|noFile|noSnap|NAN_OK);
if (m_bDoResTime)
{
//DDB.Double("K_Rt", "", DC_, "", &dK_Rt, &Eq, isResult);
//DDB.Double("Defined_RT", "", DC_Time, "s", &m_ddDefinedResTime, &Eq, isParm);
//m_ddDefinedResTime.BuildDataDefn(DDB, "RT_Ref", "", DC_Time, "s", xid_RTRef, &Eq, "Rct", "Reqd");
//m_ddActualResTime.BuildDataDefn(DDB, "RT", "", DC_Time, "s", xid_ResTime, &Eq, "Actual", "Reqd");
//DDB.Double("Actual_RT", "", DC_Time, "s", &m_ddActualResTime, &Eq, isParm);
DDB.Double("Alpha", "", DC_, "", &m_dAlpha, &Eq, isResult);
}
// if (m_iXSpcId>=0)
// {
// DDB.String("ExtentSpc", "", DC_, "", &m_sExtentSpc, &Eq, 0|InitHidden|noFileAtAll);
// CCnvIndex dc;
// pchar pCnvTxt;
// SDB.AddSpCnv(DC_Frac, SDB[m_iXSpcId].SymOrTag(), "%", dc, pCnvTxt);
// m_ddExtentRqd.BuildDataDefn(DDB, "Extent", "", dc, pCnvTxt, xid_RCTExtent, &Eq, "Rct", "Reqd");
// }
};
示例3: BuildDataDefnElevation
void Crush1::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this);
DDB.Text("");
DDB.CheckBox("On", "", DC_, "", &bOnLine, this, isParm);
DDB.Text("Power");
DDB.Double("Bond_WI", "BondWI", DC_WI , "kWh/t", &BWI, this, isParm);
DDB.Double("Calc_Power", "UsedPower", DC_Pwr, "kW", &Power, this, isResult|0);
DDB.Text("");
DDB.Double("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, isResult|0);
BuildDataDefnElevation(DDB);
CB.Add_StandardDataDefn(DDB, true);
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
DDB.Text("");
DDB.Double("DischOnSpeed", "", DC_Frac, "%", &DischOnSpeed, this, isParm);
MSB.BuildDataDefn(DDB, this, "Speed", 1);
m_Pwr.BuildDataDefn(DDB);
DDB.Visibility();
DDB.Text("");
BuildDataDefnShowIOs(DDB);
CB.Add_ObjectDataDefn(DDB, true);
DDB.Object(&Disch, this, NULL, NULL, DDB_RqdPage);
DDB.EndStruct();
}
示例4: Add_StandardDataDefn
void CrushBlk::Add_StandardDataDefn(DataDefnBlk & DDB, flag Vis)
{
DDEF_Flags Old = DDB.GetVisibility();
DDB.Visibility(NSHM_All, Vis);
DDB.Text("");
DDB.CheckBox("TrackStatus", "", DC_, "", &bTrackStatus, this, isParm);
static DDBValueLst DDB0[]={
{(int)CM_PartCrv_Overall, "Overall_PartCrv"},
{(int)CM_PartCrv_Individ, "Individual_PartCrv" },
{(int)CM_SelBreak, "Select/Break"},
{(int)CM_TestData_Overall, "Overall_TestData"},
{(int)CM_TestData_Individ, "Individual_TestData" },
//{(int)CM_JK, "JK" },
{0}};
DDB.Byte ("Method", "", DC_, "", xidMethod, this, isParmStopped/*|DDEF_SETONCHANGE*/, DDB0);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_PartCrv_Overall || iMethod==CM_PartCrv_Individ));
DDB.CheckBox("ForcePartCrv", "", DC_, "", &bForcePartCrv, this, isParm, DDBYesNo);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_TestData_Overall || iMethod==CM_TestData_Individ));
DDB.CheckBox("EnterExtents", "", DC_, "", xidEnterExtents, this, isParmStopped, DDBYesNo);
DDB.Visibility(NSHM_All, Vis && (iMethod==CM_JK));
DDB.Double("", "K1", DC_L, "mm", &dK1, this, isParm);
DDB.Double("", "K2", DC_L, "mm", &dK2, this, isParm);
DDB.Double("", "K3", DC_, "", &dK3, this, isParm);
DDB.Double("", "t10", DC_, "", &dt10, this, isParm);
//DDB.Visibility(NSHM_All, Vis);
DDB.SetVisibility(Old);
}
示例5: BuildDataDefnEnd
void CEC_FracExt::BuildDataDefnEnd(DataDefnBlk & DDB)
{
if (!DDB.ForFileSnpScn() && RB.sm_ChgVars)
{
if (RB.sm_ChgVars & SRSC_Mass)
{
if (DDB.BeginStruct(&Eq, "MsChg", NULL, DDB_NoPage, -1, 0|MarkerClosed))
{
for (int i=0; i<Eq.Reactant.GetSize(); i++)
{
DDB.Double(SDB[Eq.Reactant[i].SpcId].SymOrTag(), "", DC_Qm, "kmol/s", &Eq.Reactant[i].m_dMsXfer, &Eq, isResult|noFileAtAll);
}
for (int i=0; i<Eq.Product.GetSize(); i++)
DDB.Double(SDB[Eq.Product[i].SpcId].SymOrTag(), "", DC_Qm, "kmol/s", &Eq.Product[i].m_dMsXfer, &Eq, isResult|noFileAtAll);
}
DDB.EndStruct();
}
if (RB.sm_ChgVars & SRSC_Molar)
{
if (DDB.BeginStruct(&Eq, "MlChg", NULL, DDB_NoPage, -1, 0|MarkerClosed))
{
for (int i=0; i<Eq.Reactant.GetSize(); i++)
{
DDB.Double(SDB[Eq.Reactant[i].SpcId].SymOrTag(), "", DC_QKgMl, "kmol/s", &Eq.Reactant[i].m_dMlXfer, &Eq, isResult|noFileAtAll);
}
for (int i=0; i<Eq.Product.GetSize(); i++)
DDB.Double(SDB[Eq.Product[i].SpcId].SymOrTag(), "", DC_QKgMl, "kmol/s", &Eq.Product[i].m_dMlXfer, &Eq, isResult|noFileAtAll);
}
DDB.EndStruct();
}
}
};
示例6: BuildDataDefn
void PE_Linear::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.Double ("Resistance", "Resistn", DC_, "", &R_Fxd, NULL, isParm);
DDB.Double ("PressDrop", "DP", DC_DP, "kPa", &m_dDP, NULL, isResult);
//DDB.Double ("Length", "", DC_L, "m", &Len_Rqd, NULL, isParmStopped);
// DDB.Double ("Diam", "", DC_L, "mm", &Diam, NULL, isParm);
BuildDataDefnOveride(DDB);
};
示例7: BuildDataDefn
/*This provides access to the variables of the model and calls the
BuildDataDefn for objects used by the model.*/
void CentrifugeMB::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this);
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
BuildDataDefnElevation(DDB);
DDB.Text (" ");
DDB.Double ("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, isResult|0);
DDB.Double ("Level", "Lvl", DC_Frac, "%", xidLevel, this, isResult|0);
DDB.Double ("Mass_Accum", "QmAcc", DC_Qm, "kg/s", &m_QmAcc, this, isResult|0);
DDB.Double ("Vol_Accum", "QvAcc", DC_Qv, "L/s", &m_QvAcc, this, isResult|0);
DDB.Visibility();
DDB.Text ("");
DDB.Text ("Requirements");
DDB.CheckBox("On", "", DC_, "", &fOn, this, isParm);
if (PrjFileVerNo()<49)
DDB.Double ("", "SolidLoss", DC_Frac, "%", &RqdSolidsToFiltrate, this, isParm);//SolidLoss
else
DDB.Double ("Rqd_Solids_To_Filtrate", "RqdSolToFilt", DC_Frac, "%", &RqdSolidsToFiltrate,this, isParm);//SolidLoss
DDB.Double ("Rqd_Cake_Moisture", "RqdCakeMoist", DC_Frac, "%", &RqdCakeMoist, this, isParm);
DDB.Double ("Rqd_Wash_Efficiency", "RqdWashEff", DC_Frac, "%", &WashEff, this, isParm);
DDB.Text ("");
DDB.Text ("Results");
//DDB.Double ("Wash_Efficiency", "WashEff", DC_Frac, "%", &ActWashEff, this, isResult);//|noFile|noSnap);
DDB.Double ("Cake_Moisture", "CakeMoist", DC_Frac, "%", &ActCakeLiq, this, isResult);//|noFile|noSnap);
DDB.Double ("Cake_Solids", "CakeSolids", DC_Frac, "%", &ActCakeSolids, this, isResult);//|noFile|noSnap);
DDB.Double ("Filtrate_Solids", "FiltSolids", DC_Frac, "%", &ActFiltSolids, this, isResult);//|noFile|noSnap);
DDB.Double ("[email protected]", "FiltSolConc25", DC_Conc, "g/L", &ActFiltSolConc, this, isResult);//|noFile|noSnap);
DDB.Double ("[email protected]", "[email protected]", DC_Conc, "g/L", &ActFiltSolConcT, this, isResult);//|noFile|noSnap|InitHidden);
DDB.Visibility(NM_Probal|SM_All|HM_All);
//DDB.Byte ("", "ScanEffSpecie", DC_, "", &iScanEffSpecie, this, isParm, SDB.DDBLiqSpList());
//DDB.Double ("Scandrett_Wash_Eff", "ScandrettEff", DC_Frac, "%", &ActScandrettEff, this, isResult);//|noFile|noSnap);
DDB.Byte ("", "WashComp", DC_, "", &iWashEffSpecie, this, isParm, SDB.DDBLiqSpList());
DDB.Double ("", "CompWashEff1", DC_Frac, "%", &dSpWashEff, this, isResult);//|noFile|noSnap);
DDB.Double ("", "CompWashEff2", DC_Frac, "%", &dSpWashEff2, this, isResult);//|noFile|noSnap);
//DDB.Visibility(NM_Dynamic|SM_All|HM_All);
//DDB.Bool ("", "CakeDisch?", DC_ , "", &Disch, this, isParm, DDBYesNo);
DDB.Visibility();
DDB.Text (" ");
m_RB.Add_OnOff(DDB);
m_EHX.Add_OnOff(DDB);
DDB.Text (" ");
BuildDataDefnShowIOs(DDB);
m_RB.BuildDataDefn(DDB);
m_EHX.BuildDataDefn(DDB);
if (SolveSurgeMethod())
{
DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
}
DDB.EndStruct();
}
示例8: BuildDataDefn
void TE_KFact::BuildDataDefn(DataDefnBlk & DDB)
{
KConst.BuildDataDefn(DDB, "KConst", "", DC_, "", xidKConst, NULL, "Initial", "Required");
DDB.Byte ("Type", "", DC_, "", &iType, NULL, isParm|SetOnChange, DDBTT);
DDB.Double ("PipeDiam", "D-Pipe", DC_L, "mm", xidPDiam, NULL, isParmStopped);
DDB.Double ("Density", "Rho", DC_Rho, "kg/m^3",&dDensMeas, NULL, isResult);
DDB.Double ("Viscosity", "Visc", DC_Visc,"cP", &dViscMeas, NULL, isResult);
DDB.Double ("Velocity", "Vel", DC_Ldt, "m/s", &dVelMeas, NULL, isResult);
DDB.Double ("FricFac", "fT", DC_, "", &dFricFac, NULL, isResult);
m_PhD.KFact.BuildDataDefn(DDB, "ResistCoeff", "K", DC_, "", xidKFact, NULL, "Calculated", "Required");
DDB.Double ("PressDrop", "DP", DC_DP, "kPa", &m_dDP, NULL, isResult);
BuildDataDefnOveride(DDB);
};
示例9: BuildDataDefn
void HydroCyclone::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this);
DDB.Double("ByePass2Grits", "", DC_Frac, "%", &ByePass2Grits, this,isParm);
DDB.Double("OreToGrits", "", DC_Frac, "%", &Ore2Grit, this, DynMode() ? 0 : isParm);
DDB.Double("LiqToGrits", "", DC_Frac, "%", &Liq2Grit, this, DynMode() ? 0 : isParm);
DDB.Text("");
GSM.Add_OnOff(DDB);
GSM.BuildDataDefn(DDB, NULL, NULL, DDB_OptPage);
DDB.Object(&PartCrv, this, NULL, NULL, DDB_RqdPage);
DDB.EndStruct();
};
示例10: BuildDataDefnElevation
void Mill1::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this);
DDB.Text("");
DDB.CheckBox("On", "", DC_, "", &bOnLine, this, isParm);
DDB.Text("Power");
DDB.Double("InstalledPower", "Motor", DC_Pwr, "kW", &Motor, this, isParm);
DDB.Double("PercentHeat", "HeatPerc", DC_Frac, "%", &Eff, this, isParm);
DDB.Double("Bond_WI", "BondWI", DC_WI , "kWh/t", &BWI, this, isParm);
DDB.Double("Calc_Power", "UsedPower", DC_Pwr, "kW", &Power, this, isResult|0);
DDB.Double("Calc_Heat", "HeatPower", DC_Pwr, "kW", &Heat, this, isResult|0);
DDB.Text("");
DDB.Double("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, isResult|0);
BuildDataDefnElevation(DDB);
CB.Add_StandardDataDefn(DDB, true);
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
DDB.Text("");
DDB.Double("DischOnSpeed", "", DC_Frac, "%", &DischOnSpeed, this, isParm);
MSB.BuildDataDefn(DDB, this, "Speed", 1);
m_Pwr.BuildDataDefn(DDB);
DDB.Visibility();
m_RB.Add_OnOff(DDB);
DDB.Text("");
BuildDataDefnShowIOs(DDB);
CB.Add_ObjectDataDefn(DDB, true);
m_RB.BuildDataDefn(DDB);
if (NetDynamicMethod())
{
DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
}
DDB.Object(&Disch, this, NULL, NULL, DDB_RqdPage);
DDB.EndStruct();
}
示例11: BuildDataDefn
void CSzSSA::BuildDataDefn(DataDefnBlk & DDB)
{
// DDB.CheckBox("SetSAM", "", DC_, "", &m_bSetSAM, this, m_bSAMCalcd ? 0 : isParm);
if (DDB.BeginStruct(this, "SSA", 0))
{
DDB.Byte ("", "Method", DC_, "", &m_iMethod, this, 0/*isParm*/, DDBMeth);
DDB.Visibility(NSHM_All ,m_iMethod==SSA_Independent);
if (!DDB.ForFileSnpScn())
DDB.CheckBoxBtn("SetData", "", DC_, "", xidSSAAllowSet, this, isParm);
DDB.Long ("", "Solids", DC_, "", &m_iSolids, this, (m_bHasPSD || !DataSettable()) ? 0 : isParm, SDB.DDBSolSpListDash());
DDB.Visibility();
DDB.Double ("SeedSurfAreaM", "SAM", DC_SurfAreaM, "m^2/g", xidSSAPartSAM, this, (m_bHasPSD || !DataSettable()) ? 0 : isParm);
DDB.Double ("SeedSurfAreaL", "SAL", DC_SurfAreaL, "m^2/L", xidSSAPartSAL, this, noFile);
DDB.Double ("#/s", "", DC_, "", xidSSAPartNoperSec, this, noFile|InitHidden);
DDB.Double ("#/L", "", DC_, "", xidSSAPartNoperVol, this, noFile|InitHidden);
DDB.Double ("PartDiam", "D", DC_L, "um", xidSSAPartDiam, this, ((m_bHasPSD || !DataSettable()) ? 0 : isParm)|noFile);
DDB.Double ("SolidsQm", "", DC_Qm, "kg/s", xidSSAPartSolidsQm, this, noFile|InitHidden);
}
DDB.EndStruct();
}
示例12: BuildDataDefn
/*#F:This provides access to the variables of the model and calls the
BuildDataDefn for objects used by the model.*/
void CElectroCell::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this);
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
BuildDataDefnElevation(DDB);
DDB.Double ("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, isResult|0);
DDB.Double ("Level", "Lvl", DC_Frac, "%", xidLevel, this, isResult|0);
DDB.Double ("Mass_Accum", "QmAcc", DC_Qm, "kg/s", &m_QmAcc, this, isResult|0);
DDB.Double ("Vol_Accum", "QvAcc", DC_Qv, "L/s", &m_QvAcc, this, isResult|0);
DDB.Text ("");
DDB.Byte ("Plated_Metal?", "Metal?", DC_, "", &iMetal, this, isParm, SDB.DDBSolSpList());
DDB.Double ("Cathode_Mass", "Cathodes", DC_, "", &CathMass, this, isResult|0);
DDB.Visibility();
DDB.Text ("");
DDB.Double ("CellEfficiency","Cell_Eff", DC_Frac, "%", &dCellEff, this, isParm);
//DDB.Double ("", "PreHeatFrac", DC_Frac, "%", &dPreHeatFrac, this, isParm); //possibly not needed?
//DDB.Double ("", "EnergyRqd", DC_Pwr, "kW", &dHeatFlow, this, isResult|noFileAtAll|InitHidden);
//DDB.Double ("", "HeatFlow", DC_Pwr, "kW", &dHeatFlow, this, isResult|0);
DDB.Double ("", "ElecEnergyTotal", DC_Pwr, "kW", &m_dElecEnergyTotal, this, isResult|0);
DDB.Double ("", "ElecEnergyReact", DC_Pwr, "kW", &m_dElecEnergyReact, this, isResult|0);
DDB.Double ("", "ElecEnergyHeat", DC_Pwr, "kW", &m_dElecEnergyHeat , this, isResult|0);
DDB.Text ("");
DDB.Double ("TempFeed", "Feed.T", DC_T, "C", &m_TempKFeed, this, isResult);//|noFileAtAll);
DDB.Double ("FinalT", "", DC_T, "C", &m_TempKProd, this, isResult|0);
DDB.Text ("");
m_RB.Add_OnOff(DDB);
DDB.Visibility();
DDB.Text ("");
BuildDataDefnShowIOs(DDB, true);
BuildDataDefnIOOpts(DDB);
m_RB.BuildDataDefn(DDB);
if (SolveSurgeMethod())
{
DDB.Object(&Contents, this, NULL, NULL, DDB_RqdPage);
DDB.Object(&m_PresetImg, this, NULL, NULL, DDB_RqdPage);
}
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
//if (Contents.SpillExists())
// DDB.Object(&Contents.OverFlow, this, NULL, NULL, DDB_RqdPage);
DDB.Visibility();
DDB.EndStruct();
};
示例13: BuildDataDefn
void CTransformer::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.BeginStruct(this, "CTransformer", NULL, DDB_NoPage);
DDB.Text("");
DDB.Long ("PriCfg", "", DC_, "", xidTSCfgP, this, isParm, DDBCTTypes);
DDB.Long ("SecCfg", "", DC_, "", xidTSCfgS, this, isParm, DDBCTTypes);
DDB.Text("");
DDB.Double ("NomPriVolts", "", DC_V, "V", &m_dPriV, this, isParm);
DDB.Double ("NomSecVolts", "", DC_V, "V", &m_dSecV, this, isParm);
DDB.Double ("PriResist", "", DC_Ohms, "Ohms", xidPriR, this, isParm);
DDB.Double ("PriIndReact", "", DC_Ohms, "Ohms", xidPriX, this, isParm);
DDB.Double ("SecResist", "", DC_Ohms, "Ohms", xidSecR, this, isParm);
DDB.Double ("SecIndReact", "", DC_Ohms, "Ohms", xidSecX, this, isParm);
DDB.Double ("NoLoadCurrent", "", DC_I, "A", &m_dNLI, this, isParm);
DDB.Double ("NoLoadPhase", "", DC_Ang, "deg", &m_dNLA, this, isParm);
DDB.Double ("HeatLoad", "", DC_Pwr, "W", xidHtLoad,this, 0);
DDB.Text("");
m_tsPri.BuildDataDefn(DDB, 1, true);
m_tsSec.BuildDataDefn(DDB, 2, true);
DDB.EndStruct();
}
示例14: BuildDataDefn
void PL_FwdRev::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.Byte("Mode", "", DC_, "", &iMode, this, isParm, DDBPmpStartMode);
switch (iMode)
{
case 0:
DDB.CheckBoxBtn("Enable", "Run", DC_, "", &bOn, this, isParm, DDBOnOff);
DDB.CheckBoxBtn("Invert", "", DC_, "", &bStartInv,this, isParm, DDBOnOff);
break;
case 1:
case 2:
DDB.CheckBoxBtn("Permissive", "", DC_, "", &bOn, this, isParm, DDBOnOff);
DDB.CheckBoxBtn("Start", "", DC_, "", &bStart, this, isParm, DDBOnOff);
DDB.CheckBoxBtn("Stop", "", DC_, "", &bStop, this, isParm, DDBOnOff);
DDB.CheckBoxBtn("StartInvert","", DC_, "", &bStartInv,this, isParm, DDBOnOff);
DDB.CheckBoxBtn("StopInvert", "", DC_, "", &bStopInv, this, isParm, DDBOnOff);
break;
}
DDB.CheckBoxBtn("Running", "", DC_, "", &bRunning, this, 0, DDBOnOff);
DDB.CheckBoxBtn("Tripped", "", DC_, "", &bTripped, this, isParm, DDBOnOff);
//DDB.Add_OnOff("State", &bOn, False, this);
//DDB.Add_YesNo("Forward", &bFwd, False, this);
DDB.CheckBoxBtn("Forward", "", DC_, "", &bFwd, this, isParm, DDBYesNo);
DDB.Double("LocalY", "Manual", DC_Frac, "%", &m_dManualSpeed, this, isParm|NAN_OK);
DDB.Double("Speed", "Reqd", DC_Frac, "%", &m_dSpeedReqd, this, isParm);
DDB.Double("", "Actual", DC_Frac, "%", &m_dSpeed, this, 0);
DDB.Double("", "Regulated", DC_Frac, "%", &m_dSpeedReg, this, isResult);
DDB.Bool ("LoSpeed", "", DC_, "", &bLoSpeed, this, isResult);
DDB.Bool ("HiSpeed", "", DC_, "", &bHiSpeed, this, isResult);
DDB.Float ("LoSpeedLimit", "", DC_Frac, "%", &dLoSpeedLimit,this, isParm|InitHidden);
DDB.Float ("HiSpeedLimit", "", DC_Frac, "%", &dHiSpeedLimit,this, isParm|InitHidden);
DDB.CheckBoxBtn("AutoReStart", "", DC_, "", &m_bAutoRestart, this, isParm, DDBOnOff);
DDB.Byte("FailMode", "", DC_, "", &iFailMode, this, isParm, DDBPmpFailMode);
DDB.CheckBoxBtn("RunMemory", "", DC_, "", &bRunMemory, this, InitHidden, DDBOnOff);
//if (m_pPwr)
// m_pPwr->BuildDataDefn(DDB);
}
示例15: BuildDataDefn
void CPipeTerm::BuildDataDefn(DataDefnBlk &DDB)
{
DDB.BeginStruct(this, NULL, NULL, DDB_NoPage);
DDB.Text ("Flow Conditions");
DDB.Double ("Mass_Flow", "Qm", DC_Qm, "kg/s", xidQm, this, isResult|noFile|noSnap);
DDB.Double ("Vol_Flow", "Qv", DC_Qv, "L/s", xidQv, this, isResult|noFile|noSnap);
DDB.Double ("NVol_Flow", "NQv", DC_NQv, "NL/s", xidNQv, this, isResult|noFile|noSnap);
DDB.Double ("Temperature", "T", DC_T, "C", xidTemp, this, isResult|noFile|noSnap);
DDB.Double ("Density", "Rho", DC_Rho, "kg/m^3", xidRho, this, isResult|noFile|noSnap);
DDB.Double ("NDensity", "NRho", DC_Rho, "kg/m^3", xidNRho, this, isResult|noFile|noSnap);
DDB.Double ("PressureIn", "PIn", DC_P, "kPag", xidPIn, this, isResult|noFile|noSnap);
DDB.Double ("PressureOut", "POut", DC_P, "kPag", xidPOut, this, isResult|noFile|noSnap);
DDB.Visibility(NSHM_All);
flag ParmOK=true;
DDB.Visibility();
DDB.Text ("");
DDB.Double("PressureOutRqd","POutRqd", DC_P, "kPag", &m_dPOut, this, isParm);
DDB.Double("Head", "", DC_L, "m", &m_dHead, this, isParm);
BuildDataDefnElevation(DDB);
DDB.Text ("");
m_FRB.BuildDataDefn(DDB, this, true);
DDB.Visibility(NM_Dynamic|SM_All|HM_All);
DDB.Text ("");
m_VPB.BuildDataDefn(DDB, this, "Posn", 1);
DDB.Visibility(NSHM_All);
if (NoFlwIOs()>0 && !DDB.ForFileSnpScn())
IOFB(0,0)->BuildDataDefn(FBDDOpt_WithAll, DDB, this, "CtrlEqn", 2);
DDB.Visibility();
DDB.Object(&m_Flows, this, NULL, NULL, DDB_RqdPage);
DDB.Text("");
DDB.EndStruct();
}