10#include "UnrealString.h"
19 std::string Filename2;
22 if (Filename.find(
"\\") != std::string::npos || Filename.find(
"/") != std::string::npos || Filename.find(
":") != std::string::npos)
26 FString Path = FPaths::ConvertRelativePathToFull(FPaths::ProjectSavedDir());
27 Filename2 = TCHAR_TO_UTF8(*Path) + Filename;
40 WriteValue<float>(OutFile, InObj.X);
41 WriteValue<float>(OutFile, InObj.Y);
42 WriteValue<float>(OutFile, InObj.Z);
56 FTCHARToUTF8 EncodedString(*InObj);
57 int16_t Length = EncodedString.Length();
59 WriteValue<uint16_t>(OutFile, Length);
60 OutFile.write(
reinterpret_cast<char *
>(TCHAR_TO_UTF8(*InObj)), Length);
70 ReadValue<float>(InFile, OutObj.X);
71 ReadValue<float>(InFile, OutObj.Y);
72 ReadValue<float>(InFile, OutObj.Z);
80 OutObj.SetTranslation(Vec);
82 OutObj.GetRotation().MakeFromEuler(Vec);
89 ReadValue<uint16_t>(InFile, Length);
static std::vector< uint8_t > CarlaRecorderHelperBuffer
void WriteFTransform(std::ofstream &OutFile, const FTransform &InObj)
void WriteFString(std::ostream &OutFile, const FString &InObj)
void ReadFString(std::istream &InFile, FString &OutObj)
void ReadFTransform(std::ifstream &InFile, FTransform &OutObj)
void WriteFVector(std::ostream &OutFile, const FVector &InObj)
void ReadFVector(std::istream &InFile, FVector &OutObj)
std::string GetRecorderFilename(std::string Filename)