13 WriteValue<EVehicleWheelLocation>(OutFile,
Location);
20 ReadValue<EVehicleWheelLocation>(InFile,
Location);
27 WriteValue<uint32_t>(OutFile, DatabaseId);
28 WriteValue<uint32_t>(OutFile, WheelValues.size());
29 for (
const WheelInfo& Wheel : WheelValues)
37 ReadValue<uint32_t>(InFile, DatabaseId);
38 uint32_t NumWheels = 0;
39 ReadValue<uint32_t>(InFile, NumWheels);
40 WheelValues.reserve(NumWheels);
41 for (
size_t i = 0; i < NumWheels; ++i)
45 WheelValues.push_back(Wheel);
53 VehicleWheels.clear();
58 VehicleWheels.push_back(Vehicle);
66 std::streampos PosStart = OutFile.tellp();
70 WriteValue<uint32_t>(OutFile, Total);
73 Total = VehicleWheels.size();
74 WriteValue<uint16_t>(OutFile, Total);
76 for (uint16_t i=0; i<Total; ++i)
77 VehicleWheels[i].
Write(OutFile);
80 std::streampos PosEnd = OutFile.tellp();
81 Total = PosEnd - PosStart -
sizeof(uint32_t);
82 OutFile.seekp(PosStart, std::ios::beg);
83 WriteValue<uint32_t>(OutFile, Total);
84 OutFile.seekp(PosEnd, std::ios::beg);
93 ReadValue<uint16_t>(InFile, Total);
94 for (i = 0; i < Total; ++i)
103 return VehicleWheels;
void Read(std::istream &InFile)
void Add(const CarlaRecorderAnimWheels &InObj)
void Write(std::ostream &OutFile) const
EVehicleWheelLocation Location
void Write(std::ostream &OutFile)
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)
void Read(std::istream &InFile)
const std::vector< CarlaRecorderAnimWheels > & GetVehicleWheels()