CARLA
CarlaRecorderFrames.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 <fstream>
10 
11 #pragma pack(push, 1)
13 {
14  uint64_t Id;
15  double DurationThis;
16  double Elapsed;
17 
18  void Read(std::ifstream &InFile);
19 
20  void Write(std::ofstream &OutFile);
21 
22 };
23 #pragma pack(pop)
24 
26 {
27 
28 public:
29 
30  CarlaRecorderFrames(void);
31  void Reset();
32 
33  void SetFrame(double DeltaSeconds);
34 
35  void WriteStart(std::ofstream &OutFile);
36  void WriteEnd(std::ofstream &OutFile);
37 
38 private:
39 
41  std::streampos OffsetPreviousFrame;
42 };
CarlaRecorderFrame Frame
std::streampos OffsetPreviousFrame
void Read(std::ifstream &InFile)
void Write(std::ofstream &OutFile)