CARLA
CarlaRecorderEventDel.h
Go to the documentation of this file.
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 #include <vector>
11 
13 {
14  uint32_t DatabaseId;
15 
16  void Read(std::istream &InFile);
17  void Write(std::ostream &OutFile) const;
18 };
19 
21 {
22 
23  public:
24  void Add(const CarlaRecorderEventDel &Event);
25  void Clear(void);
26  void Write(std::ostream &OutFile);
27  void Read(std::istream &InFile);
28  const std::vector<CarlaRecorderEventDel>& GetEvents();
29 
30  private:
31  std::vector<CarlaRecorderEventDel> Events;
32 };
std::vector< CarlaRecorderEventDel > Events
void Read(std::istream &InFile)
void Write(std::ostream &OutFile) const