14 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
15 WriteValue<uint8_t>(OutFile, this->
Type);
27 WriteValue<uint16_t>(OutFile, Total);
28 for (uint16_t i=0; i<Total; ++i)
43 ReadValue<uint8_t>(InFile, this->
Type);
55 ReadValue<uint16_t>(InFile, Total);
58 for (uint16_t i=0; i<Total; ++i)
61 ReadValue<uint8_t>(InFile, Att.
Type);
77 Events.push_back(std::move(Event));
85 std::streampos PosStart = OutFile.tellp();
89 WriteValue<uint32_t>(OutFile, Total);
92 Total = Events.size();
93 WriteValue<uint16_t>(OutFile, Total);
95 for (uint16_t i=0; i<Total; ++i)
96 Events[i].
Write(OutFile);
99 std::streampos PosEnd = OutFile.tellp();
100 Total = PosEnd - PosStart -
sizeof(uint32_t);
101 OutFile.seekp(PosStart, std::ios::beg);
102 WriteValue<uint32_t>(OutFile, Total);
103 OutFile.seekp(PosEnd, std::ios::beg);
110 ReadValue<uint16_t>(InFile, Total);
111 for (i = 0; i < Total; ++i)
113 EventAdd.
Read(InFile);
void ReadFString(std::istream &InFile, FString &OutObj)
void WriteFString(std::ostream &OutFile, const FString &InObj)
const std::vector< CarlaRecorderEventAdd > & GetEvents()
void ReadFVector(std::istream &InFile, FVector &OutObj)
void Read(std::istream &InFile)
void Add(const CarlaRecorderEventAdd &Event)
void Write(std::ostream &OutFile)
std::vector< CarlaRecorderActorAttribute > Attributes
void WriteFVector(std::ostream &OutFile, const FVector &InObj)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile) const
CarlaRecorderActorDescription Description