CARLA
Loading...
Searching...
No Matches
CarlaRecorderState.h
Go to the documentation of this file.
1// Copyright (c) 2026 Computer Vision Center (CVC) at the Universitat Autonoma
2// de Barcelona (UAB).
3//
4// This work is licensed under the terms of the MIT license.
5// For a copy, see <https://opensource.org/licenses/MIT>.
6
7#pragma once
8
9#include <sstream>
10#include <vector>
11
12#pragma pack(push, 1)
13
15{
16 uint32_t DatabaseId;
19 char State;
20
21 void Read(std::istream &InFile);
22
23 void Write(std::ostream &OutFile);
24
25};
26
27#pragma pack(pop)
28
30{
31
32public:
33
35
36 void Clear(void);
37
38 void Write(std::ostream &OutFile);
39
40 void Read(std::istream &InFile);
41
42 const std::vector<CarlaRecorderStateTrafficLight>& GetStates();
43
44private:
45
46 std::vector<CarlaRecorderStateTrafficLight> StatesTrafficLights;
47};
void Write(std::ostream &OutFile)
void Add(const CarlaRecorderStateTrafficLight &State)
std::vector< CarlaRecorderStateTrafficLight > StatesTrafficLights
void Read(std::istream &InFile)
const std::vector< CarlaRecorderStateTrafficLight > & GetStates()
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)