void CSelectionListPane::OnResult() { CSelectionDisplay * pCurrentSelection = m_pProteinVistaRenderer->GetCurrentSelectionDisplay(); SelectionOperation(m_pBooleanSelectionDisplay, pCurrentSelection, m_selectOperation ); m_pBooleanSelectionDisplay = NULL; m_selectOperation = 0; }
static void ParseOperation(dataBlockT db, string lhs) { string token; token = ConvertToLowerCase(ReadToken(db->scanner)); if (StringEqual(token, "nthelement")) { SelectionOperation(db, lhs); } else if (StringEqual(token, "length")) { LengthOperation(db, lhs); } else if (StringEqual(token, "head")) { HeadOperation(db, lhs); } else if (StringEqual(token, "tail")) { TailOperation(db, lhs); } else if (StringEqual(token, "cons")) { ConsOperation(db, lhs); } else if (StringEqual(token, "concat")) { ConcatOperation(db, lhs); } else if (IsVariableName(token)) { if (lhs == NULL) Error("Null lhs in assignment"); SetValue(db, lhs, GetValue(db, token)); } else { Error("Illegal operation %s", token); } }