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 <fstream>
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::ifstream &InFile);
23 
24  void Write(std::ofstream &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::ofstream &OutFile);
37 
38 private:
39 
40  std::vector<CarlaRecorderLightVehicle> Vehicles;
41 };
std::vector< CarlaRecorderLightVehicle > Vehicles
void Read(std::ifstream &InFile)
void Write(std::ofstream &OutFile)