13 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
14 WriteValue<bool>(OutFile, this->
IsFrozen);
16 WriteValue<char>(OutFile, this->
State);
22 ReadValue<bool>(InFile, this->
IsFrozen);
24 ReadValue<char>(InFile, this->
State);
31 StatesTrafficLights.clear();
36 StatesTrafficLights.push_back(std::move(State));
46 WriteValue<uint32_t>(OutFile, Total);
49 Total = StatesTrafficLights.size();
50 WriteValue<uint16_t>(OutFile, Total);
52 for (uint16_t i = 0; i < Total; ++i)
54 StatesTrafficLights[i].Write(OutFile);
void Write(std::ofstream &OutFile)
void Add(const CarlaRecorderStateTrafficLight &State)
void Write(std::ofstream &OutFile)
void Read(std::ifstream &InFile)