本文整理汇总了C++中DataDefnBlk::Float方法的典型用法代码示例。如果您正苦于以下问题:C++ DataDefnBlk::Float方法的具体用法?C++ DataDefnBlk::Float怎么用?C++ DataDefnBlk::Float使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataDefnBlk
的用法示例。
在下文中一共展示了DataDefnBlk::Float方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: BuildDataDefn
void PL_SoftStSp::BuildDataDefn(DataDefnBlk & DDB)
{
DDB.Byte("Mode", "", DC_, "", &iMode, this, isParm, DDBPmpStartMode);
DDB.Byte("FwdRevMode", "", DC_, "", &iFwdRev, this, isParm, DDBFwdRevMode );
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;
}
if (iFwdRev==PLSS_FwdRevLogic)
DDB.CheckBoxBtn("Reverse", "", DC_, "", &bRunRev, this, isParm, DDBOnOff);
DDB.CheckBoxBtn("Running", "", DC_, "", &bRunning, this, 0, DDBOnOff);
DDB.CheckBoxBtn("Tripped", "", DC_, "", &bTripped, this, isParm, DDBOnOff);
DDB.Double("StartTime", "StrtTime", DC_Time, "s", &dStartTime, this, isParm);
DDB.Double("StopTime", "StopTime", DC_Time, "s", &dStopTime, this, isParm);
DDB.Double("LocalY", "Manual", DC_Frac, "%", &m_dManualSpeed, this, isParm|NAN_OK);
DDB.Double("Required", "Reqd", DC_Frac, "%", &m_dSpeedReqd, this, isParm);
DDB.Double("Actual", "Actual", DC_Frac, "%", &m_dSpeed, this, isResult|0);
DDB.Double("", "Regulated", DC_Frac, "%", &m_dSpeedReg, this, isResult);
DDB.Double("MapLo", "", DC_Frac, "%", &dMapLo, this, isParm);
DDB.Double("MapHi", "", DC_Frac, "%", &dMapHi, this, isParm);
DDB.Double("MapSpeed", "", DC_Frac, "%", &m_dMapSpeed, this, isResult|0);
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);
};