369 typedef std::map<std::pair<size_t, std::string>, Column> Sorted;
373 for (Columns::const_iterator it=
cols.cbegin(); it!=
cols.cend(); it++)
374 sorted[std::make_pair(it->second.offset, it->first)] = it->second;
376 for (Sorted::const_iterator it=sorted.cbegin(); it!=sorted.cend(); it++)
378 gLog <<
___all___ << std::setw(6) << it->second.offset <<
"| ";
379 gLog << it->second.num <<
'x';
380 switch (it->second.type)
382 case 'A':
gLog <<
"char(8)";
break;
383 case 'L':
gLog <<
"bool(8)";
break;
384 case 'B':
gLog <<
"byte(8)";
break;
385 case 'I':
gLog <<
"short(16)";
break;
386 case 'J':
gLog <<
"int(32)";
break;
387 case 'K':
gLog <<
"int(64)";
break;
388 case 'E':
gLog <<
"float(32)";
break;
389 case 'D':
gLog <<
"double(64)";
break;
391 gLog <<
": " << it->first.second <<
" [" << it->second.unit <<
"]" << std::endl;