CARLA
 
载入中...
搜索中...
未找到
CarlaRecorderEventParent.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#include <vector>
11
13{
14 uint32_t DatabaseId;
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};
const std::vector< CarlaRecorderEventParent > & GetEvents()
void Write(std::ostream &OutFile)
void Read(std::istream &InFile)
void Add(const CarlaRecorderEventParent &Event)
std::vector< CarlaRecorderEventParent > Events
void Write(std::ostream &OutFile) const
void Read(std::istream &InFile)