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);
41 Vehicles.push_back(Vehicle);
49 std::streampos PosStart = OutFile.tellp();
53 WriteValue<uint32_t>(OutFile, Total);
56 Total = Vehicles.size();
57 WriteValue<uint16_t>(OutFile, Total);
59 for (uint16_t i=0; i<Total; ++i)
60 Vehicles[i].
Write(OutFile);
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);
76 ReadValue<uint16_t>(InFile, Total);
77 for (i = 0; i < Total; ++i)
void Add(const CarlaRecorderAnimVehicle &InObj)
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
const std::vector< CarlaRecorderAnimVehicle > & GetVehicles()
void Read(std::istream &InFile)