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);
64 ReadValue<uint16_t>(InFile, Total);
65 for (i = 0; i < Total; ++i)
67 StateTrafficLight.
Read(InFile);
68 Add(StateTrafficLight);
74 return StatesTrafficLights;
void Read(std::istream &InFile)
void Add(const CarlaRecorderStateTrafficLight &State)
void Write(std::ostream &OutFile)
const std::vector< CarlaRecorderStateTrafficLight > & GetStates()
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)