CARLA
CarlaRecorderEventParent.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  uint32_t DatabaseIdParent;
16 
17  void Read(std::istream &InFile);
18  void Write(std::ostream &OutFile) const;
19 };
20 
22 {
23 
24  public:
25  void Add(const CarlaRecorderEventParent &Event);
26  void Clear(void);
27  void Write(std::ostream &OutFile);
28  void Read(std::istream &InFile);
29  const std::vector<CarlaRecorderEventParent>& GetEvents();
30 
31  private:
32  std::vector<CarlaRecorderEventParent> Events;
33 };
std::vector< CarlaRecorderEventParent > Events
void Read(std::istream &InFile)
void Write(std::ostream &OutFile) const