QString InverseChannelMapSubtable::toStringXML(uint indent_level) const { QString indent_0 = xml_indent(indent_level); QString indent_1 = xml_indent(indent_level + 1); QString str = indent_0 + "<InverseChannelMap "; str += QString("first_map_index=\"%1\" ") .arg(FirstMapIndex()); str += QString("record_count=\"%1\">\n") .arg(RecordCount()); for (uint i = 0; i < RecordCount(); i++) { str += indent_1 + QString("<Map source_id=\"%1\" " "virtual_channel_number=\"%2\" />\n") .arg(SourceID(i)).arg(VirtualChannelNumber(i)); } return str + indent_0 + "</InverseChannelMap>"; }
QString UdpLogDB::GetCopy(int start, int count) { DebugLvl1("GetCopy"); QString res; if (count < 0) count = RecordCount(); // fix: 'start' is sent from other thead and DB can be dropped before we received it if (start > RecordCount()) start = 0; if (count > (RecordCount() - start)) count = RecordCount(); // count = 0 -> use dbSize as count if (count == 0) count = RecordCount(); ToString(start, count, res); DebugLvl1("\\GetCopy"); return res; }
bool PGRecordset::IsEOF() const { if (!result_) return true; try { if ((long) cur_row_num_ >= RecordCount()) return true; else return false; } catch (...) { ErrorManager::Instance()->ReportError(ErrorManager::Medium, 5087, "PGRecordset::IsEOF", "An unknown error occurred while checking EOF in record set."); throw; } }