本文整理汇总了C++中CField::bSatisfiesConstraints方法的典型用法代码示例。如果您正苦于以下问题:C++ CField::bSatisfiesConstraints方法的具体用法?C++ CField::bSatisfiesConstraints怎么用?C++ CField::bSatisfiesConstraints使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CField
的用法示例。
在下文中一共展示了CField::bSatisfiesConstraints方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateMeasurementInfo
void VirtualMeasurement::UpdateMeasurementInfo(int iCID, LPCSTR pRawString, CString& szDisplayableResult)
{
CMeaCol::ColumnID iColumnID = (CMeaCol::ColumnID)iCID;
CField* pf = CSelectMeasurement::GetColScheme(iColumnID);
bool bMsgBox = false;
switch (iColumnID)
{
case CMeaCol::eItem:
break;
case CMeaCol::eFacility:
if (pf->bSatisfiesConstraints(pRawString))
{
l_szUtilCopy(_szMPFacilityName, pRawString, MAX_NAME_LENGTH);
}
else
{
bMsgBox = true;
}
szDisplayableResult = _szMPFacilityName;
break;
case CMeaCol::eID:
if (pf->bSatisfiesConstraints(pRawString))
{
l_szUtilCopy(_szMPItemID, pRawString, MAX_ID_LENGTH);
}
else
{
bMsgBox = true;
}
szDisplayableResult = _szMPItemID;
break;
case CMeaCol::eMeasType:
_iMPMeasurementType = tImageToMeasurementType(pRawString);
szDisplayableResult.Format(pf->format, _iMPMeasurementType);
break;
case CMeaCol::eEnrichment:
if (pf->bSatisfiesConstraints(pRawString))
{
sscanf(pRawString, CSelectMeasurement::GetColScheme(iColumnID)->inputFormat, &_fMPEnrichmentPercent);
}
else
{
bMsgBox = true;
}
szDisplayableResult.Format(pf->format, _fMPEnrichmentPercent);
break;
case CMeaCol::eBurnUp:
if (pf->bSatisfiesConstraints(pRawString))
{
CString sp = pRawString;
sscanf(pRawString, CSelectMeasurement::GetColScheme(iColumnID)->inputFormat, &_fMPBurnUp);
if (_fMPBurnUp == 0.0)
{
_fMPLogBurnup = DEFAULTBADVALUE;
}
else
{
_fMPLogBurnup = log10(_fMPBurnUp);
}
}
else
{
bMsgBox = true;
}
szDisplayableResult.Format(pf->format, _fMPBurnUp);
break;
case CMeaCol::eCycle:
if (pf->bSatisfiesConstraints(pRawString))
{
sscanf(pRawString, CSelectMeasurement::GetColScheme(iColumnID)->inputFormat, &_iMPCycle);
}
else
{
bMsgBox = true;
}
szDisplayableResult.Format(pf->format, _iMPCycle);
break;
case CMeaCol::eThresholdA:
if (pf->bSatisfiesConstraints(pRawString))
{
sscanf(pRawString, CSelectMeasurement::GetColScheme(iColumnID)->inputFormat, &_fMPNChanAThresh);
}
else
{
bMsgBox = true;
}
szDisplayableResult.Format(pf->format, _fMPNChanAThresh);
break;
case CMeaCol::eThresholdB:
if (pf->bSatisfiesConstraints(pRawString))
{
sscanf(pRawString, CSelectMeasurement::GetColScheme(iColumnID)->inputFormat, &_fMPNChanBThresh);
}
else
{
bMsgBox = true;
}
szDisplayableResult.Format(pf->format, _fMPNChanBThresh);
break;
//.........这里部分代码省略.........