Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
Output half of the byte stream interface.
Definition obstream.h:25
void Load(IBStream &stream)
Read the record back from a stream.
std::vector< FreqAppearance > appearances
Appearances of the players who recorded the remix.
Definition remixindex.h:116
char RemixName[kRemixIndexRemixNameSize]
Definition remixindex.h:104
char GameOK
Definition remixindex.h:107
void Dump()
Print the record to the debug console under its banner, one labelled field per line.
char LevelName[kRemixIndexLevelNameSize]
Definition remixindex.h:103
RemixIndexElement()
Construct an element with only AlbumNum cleared.
Definition remixindex.h:55
char FileName[kRemixIndexFileNameSize]
Decimal file name of the remix payload inside the directory.
Definition remixindex.h:106
int Version
Definition remixindex.h:108
int AlbumNum
Definition remixindex.h:109
void Save(OBStream &stream)
Write the record in the form Load() reads.
void Reset()
Clear the three names, clear GameOK, set Version to 2, and set dateTime to the empty string.
HxStr dateTime
When the remix was saved, from FormatCurrentDateTime(), or FIXME: default date when the clock cannot ...
Definition remixindex.h:114
Index file of one remix save directory, as parsed off a card.
Definition remixindex.h:135
void WriteToStream(OBStream &stream)
Write the index to a stream in the form ReadFromStream() reads.
std::vector< RemixIndexElement > elements
Definition remixindex.h:169
int version
Definition remixindex.h:168
void ReadFromStream(IBStream &stream)
Read the index back from a stream.
void DumpElements()
Print every element to the debug console through RemixIndexElement::Dump().
constexpr int kRemixIndexFileNameSize
Characters of a remix file name a RemixIndexElement stores, terminator included.
Definition remixindex.h:18
constexpr int kRemixIndexLevelNameSize
Characters of a level name a RemixIndexElement stores, terminator included.
Definition remixindex.h:12
constexpr int kRemixIndexElementFormat
The version word RemixIndexElement::Save() writes and RemixIndexElement::Reset() stores.
Definition remixindex.h:21
constexpr int kRemixIndexRemixNameSize
Characters of a remix name a RemixIndexElement stores, terminator included.
Definition remixindex.h:15