CARLA
CarlaRecorderInfo.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 "CarlaRecorderHelpers.h"
10 
11 #include <sstream>
12 #include <ctime>
13 
15 {
16  uint16_t Version;
17  FString Magic;
18  std::time_t Date;
19  FString Mapfile;
20 
21  void Read(std::istream &File)
22  {
23  ReadValue<uint16_t>(File, Version);
24  ReadFString(File, Magic);
25  ReadValue<std::time_t>(File, Date);
26  ReadFString(File, Mapfile);
27  }
28 
29  void Write(std::ostream &File)
30  {
31  WriteValue<uint16_t>(File, Version);
32  WriteFString(File, Magic);
33  WriteValue<std::time_t>(File, Date);
34  WriteFString(File, Mapfile);
35  }
36 };
void ReadFString(std::istream &InFile, FString &OutObj)
void WriteFString(std::ostream &OutFile, const FString &InObj)
void Write(std::ostream &File)
void Read(std::istream &File)