CARLA
载入中...
搜索中...
未找到
Unreal
CarlaUE4
Plugins
Carla
Source
Carla
Recorder
CarlaRecorderInfo.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 "
CarlaRecorderHelpers.h
"
10
11
#include <sstream>
12
#include <ctime>
13
14
struct
CarlaRecorderInfo
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
};
WriteFString
void WriteFString(std::ostream &OutFile, const FString &InObj)
Definition
CarlaRecorderHelpers.cpp:53
ReadFString
void ReadFString(std::istream &InFile, FString &OutObj)
Definition
CarlaRecorderHelpers.cpp:86
CarlaRecorderHelpers.h
CarlaRecorderInfo
Definition
CarlaRecorderInfo.h:15
CarlaRecorderInfo::Write
void Write(std::ostream &File)
Definition
CarlaRecorderInfo.h:29
CarlaRecorderInfo::Version
uint16_t Version
Definition
CarlaRecorderInfo.h:16
CarlaRecorderInfo::Read
void Read(std::istream &File)
Definition
CarlaRecorderInfo.h:21
CarlaRecorderInfo::Mapfile
FString Mapfile
Definition
CarlaRecorderInfo.h:19
CarlaRecorderInfo::Magic
FString Magic
Definition
CarlaRecorderInfo.h:17
CarlaRecorderInfo::Date
std::time_t Date
Definition
CarlaRecorderInfo.h:18
制作者
1.10.0