CARLA
Loading...
Searching...
No Matches
CarlaRecorderWeather.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
13
14#pragma pack(push, 1)
16{
26 float Wetness;
30 float DustStorm;
31
32 void Read(std::istream &InFile);
33
34 void Write(std::ostream &OutFile);
35};
36#pragma pack(pop)
37
39{
40public:
41
42 void Add(const CarlaRecorderWeather &InObj);
43
44 void Clear(void);
45
46 void Write(std::ostream &OutFile);
47
48 void Read(std::istream &InFile);
49
50 const std::vector<CarlaRecorderWeather>& GetWeathers() const;
51
52 bool IsEmpty() const;
53
54private:
55
56 std::vector<CarlaRecorderWeather> Weathers;
57};
std::vector< CarlaRecorderWeather > Weathers
void Read(std::istream &InFile)
const std::vector< CarlaRecorderWeather > & GetWeathers() const
void Write(std::ostream &OutFile)
void Add(const CarlaRecorderWeather &InObj)
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)