Exemplo n.º 1
0
const TwoDARow &TwoDAFile::getRow(const Common::UString &header, const Common::UString &value) const {
	size_t columnIndex = headerToColumn(header);
	if (columnIndex == kFieldIDInvalid)
		return _emptyRow;

	for (std::vector<TwoDARow *>::const_iterator row = _rows.begin(); row != _rows.end(); ++row) {
		if ((*row)->getString(columnIndex).equalsIgnoreCase(value))
			return **row;
	}

	// No such row
	return _emptyRow;
}
Exemplo n.º 2
0
bool BDTools::createCompleter(QString name, QString table, QString column, bool caseSensitive, QCompleter::CompletionMode mode, typeModel type){
    if (headerToColumn(table,column) >= 0)
        return createCompleter(name, table, headerToColumn(table,column), caseSensitive, mode, type);

    return false;
}