");
Row* r = *it;
Variant v;
for (int i = 0; i < cols; i++) {
Column* c = m_cols[i];
if (c->m_hidden)
continue;
int offset = c->m_offset;
static const int bufsize = 100;
char buf[bufsize];
g_output.add_string("");
switch (c->m_type) {
case Coltype::_bool:
g_output.add_string(r->access_column(offset) ? "1" : "0");
break;
case Coltype::_int:
snprintf(buf, bufsize, "%i", r->access_column(offset));
g_output.add_string(buf);
break;
case Coltype::_float:
snprintf(buf, bufsize, "%g", r->access_column(offset));
g_output.add_string(buf);
break;
case Coltype::_text:
g_output.add_string(r->access_column(offset)->data);
break;
}
g_output.add_string(" | ");
}
g_output.add_string("
\n");
}
g_output.add_string("