22 WriteValue<uint32_t>(OutFile, this->
DatabaseId);
36 Events.push_back(std::move(Event));
44 std::streampos PosStart = OutFile.tellp();
48 WriteValue<uint32_t>(OutFile, Total);
51 Total = Events.size();
52 WriteValue<uint16_t>(OutFile, Total);
54 for (uint16_t i=0; i<Total; ++i)
56 Events[i].Write(OutFile);
60 std::streampos PosEnd = OutFile.tellp();
61 Total = PosEnd - PosStart -
sizeof(uint32_t);
62 OutFile.seekp(PosStart, std::ios::beg);
63 WriteValue<uint32_t>(OutFile, Total);
64 OutFile.seekp(PosEnd, std::ios::beg);
71 std::stringstream Info;
74 ReadValue<uint16_t>(InFile, Total);
75 for (i = 0; i < Total; ++i)
77 EventParent.
Read(InFile);
const std::vector< CarlaRecorderEventParent > & GetEvents()
void Read(std::istream &InFile)
void Read(std::istream &InFile)
void Write(std::ostream &OutFile)
void Write(std::ostream &OutFile) const
uint32_t DatabaseIdParent
void Add(const CarlaRecorderEventParent &Event)