14 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
15 WriteValue<float>(OutFile, this->
Steering);
16 WriteValue<float>(OutFile, this->
Throttle);
17 WriteValue<float>(OutFile, this->
Brake);
19 WriteValue<int32_t>(OutFile, this->
Gear);
25 ReadValue<float>(InFile, this->
Steering);
26 ReadValue<float>(InFile, this->
Throttle);
27 ReadValue<float>(InFile, this->
Brake);
29 ReadValue<int32_t>(InFile, this->
Gear);
49 std::streampos PosStart = OutFile.tellp();
53 WriteValue<uint32_t>(OutFile, Total);
57 WriteValue<uint16_t>(OutFile, Total);
59 for (uint16_t i=0; i<Total; ++i)
63 std::streampos PosEnd = OutFile.tellp();
64 Total = PosEnd - PosStart -
sizeof(uint32_t);
65 OutFile.seekp(PosStart, std::ios::beg);
66 WriteValue<uint32_t>(OutFile, Total);
67 OutFile.seekp(PosEnd, std::ios::beg);