make LogWriter output the type of data stored inside a set or vector.

Now the type output is e.g. vector[string] instead of just vector.
This commit is contained in:
Bernhard Amann 2011-12-07 13:04:46 -08:00
parent f1e132cd1a
commit e114bdf627
3 changed files with 22 additions and 4 deletions

View file

@ -125,6 +125,12 @@ bool LogWriterAscii::DoInit(string path, int num_fields,
const LogField* field = fields[i];
names += field->name;
types += type_name(field->type);
if ( (field->type == TYPE_TABLE) || (field->type == TYPE_VECTOR) )
{
types += "[";
types += type_name(field->subtype);
types += "]";
}
}
if ( ! (WriteHeaderField("fields", names)