Exemplo n.º 1
0
void WBPEOR::Evaluate(const WBParamEvaluator::SPEContext& Context,
                      WBParamEvaluator::SEvaluatedParam& EvaluatedParam) const {
    WBParamEvaluator::SEvaluatedParam ValueA;
    m_InputA->Evaluate(Context, ValueA);

    WBParamEvaluator::SEvaluatedParam ValueB;
    m_InputB->Evaluate(Context, ValueB);

    EvaluatedParam.m_Type = WBParamEvaluator::EPT_Bool;
    EvaluatedParam.m_Bool = ValueA.GetBool() || ValueB.GetBool();
}
Exemplo n.º 2
0
void WBPENOT::Evaluate( const WBParamEvaluator::SPEContext& Context, WBParamEvaluator::SEvaluatedParam& EvaluatedParam ) const
{
	WBParamEvaluator::SEvaluatedParam Value;
	m_Input->Evaluate( Context, Value );

	EvaluatedParam.m_Type = WBParamEvaluator::EPT_Bool;
	EvaluatedParam.m_Bool = !Value.GetBool();
}