CARLA
CarlaRecorderLightVehicle.h
Go to the documentation of this file.
1 // Copyright (c) 2020 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 #include <type_traits>
12 
13 #pragma pack(push, 1)
15 {
16  // Use same type as carla::rpc::VehicleLightState::LightState
17  using VehicleLightStateType = uint32_t;
18 
19  uint32_t DatabaseId;
21 
22  void Read(std::istream &InFile);
23 
24  void Write(std::ostream &OutFile);
25 };
26 #pragma pack(pop)
27 
29 {
30 public:
31 
32  void Add(const CarlaRecorderLightVehicle &InObj);
33 
34  void Clear(void);
35 
36  void Write(std::ostream &OutFile);
37 
38  void Read(std::istream &InFile);
39 
40  const std::vector<CarlaRecorderLightVehicle>& GetLightVehicles();
41 
42 private:
43 
44  std::vector<CarlaRecorderLightVehicle> Vehicles;
45 };
void Write(std::ostream &OutFile)
std::vector< CarlaRecorderLightVehicle > Vehicles
void Read(std::istream &InFile)