Exemple #1
0
 void GenerateCSVLine(RecordData data, StringBuilder builder)
 {
     builder.Append(data.quizType);
     AddCSVValue(builder, data.age);
     AddCSVValue(builder, data.gender);
     AddCSVValue(builder, data.quizNumber.ToString());
     AddCSVValue(builder, data.elapsedTime.ToString("f4"));
     AddCSVValue(builder, data.contentState);
     AddCSVValue(builder, data.answer);
     AddCSVValue(builder, data.responseTime.ToString("f4"));
     AddCSVValue(builder, data.modelType);
     AddCSVValue(builder, data.eyePosition.ToString().Replace(",", ":"));
     AddCSVValue(builder, data.targetRegion);
     AddCSVValue(builder, data.face);
     AddCSVValue(builder, data.motion);
     AddCSVValue(builder, data.visualizeStartTime.ToString("f4"));
     AddCSVValue(builder, data.visualizeEndTime.ToString("f4"));
     builder.Append(Constants.openLine);
 }
Exemple #2
0
 void GenerateCSVLine(RecordData data, ref string csvString)
 {
     //csvString += data.quizTitle;
     //AddCSVValue(ref csvString, data.quizType);
     csvString += data.quizType;
     AddCSVValue(ref csvString, data.age);
     AddCSVValue(ref csvString, data.gender);
     AddCSVValue(ref csvString, data.quizNumber.ToString());
     AddCSVValue(ref csvString, data.elapsedTime.ToString("f4"));
     AddCSVValue(ref csvString, data.contentState);
     AddCSVValue(ref csvString, data.answer);
     AddCSVValue(ref csvString, data.responseTime.ToString("f4"));
     AddCSVValue(ref csvString, data.modelType);
     AddCSVValue(ref csvString, data.eyePosition.ToString().Replace(",", ":"));
     AddCSVValue(ref csvString, data.targetRegion);
     //AddCSVValue(ref csvString, data.robotPosition.ToString().Replace(",", ":"));
     //AddCSVValue(ref csvString, data.robotState);
     AddCSVValue(ref csvString, data.face);
     AddCSVValue(ref csvString, data.motion);
     csvString += Constants.openLine;
 }