CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderState.h
浏览该文件的文档.
1// Copyright (c) 2017 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
11#pragma pack(push, 1)
12
14{
15 uint32_t DatabaseId;
18 char State;
19
20 void Read(std::istream &InFile);
21
22 void Write(std::ostream &OutFile);
23
24};
25
26#pragma pack(pop)
27
29{
30
31public:
32
34
35 void Clear(void);
36
37 void Write(std::ostream &OutFile);
38
39 void Read(std::istream &InFile);
40
41 const std::vector<CarlaRecorderStateTrafficLight>& GetStates();
42
43private:
44
45 std::vector<CarlaRecorderStateTrafficLight> StatesTrafficLights;
46};
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)