resonance 1.0.1
Loading...
Searching...
No Matches
jukeboxplaylist.h
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4
5#include "os/hxstr.h"
6#include "stream/ibstream.h"
7#include "stream/obstream.h"
8
9struct MetRemixRecord;
10
23
47public:
58 clear();
59 }
60
68
80 virtual void save(OBStream *pStream);
81
93 virtual void load(IBStream *pStream);
94
105 void clear();
106
117
129
140 void AddEntry(const MetRemixRecord &record);
141
152 void RemoveEntry(int nIndex);
153
165 void SwapEntries(int nFirst, int nSecond);
166
168 std::vector<JukeboxPlayListEntry *> entries;
169};
Heap-allocated NUL-terminated string.
Definition hxstr.h:41
Input half of the byte stream interface.
Definition ibstream.h:36
std::vector< JukeboxPlayListEntry * > entries
The queued remixes, owned by the list.
Definition jukeboxplaylist.h:168
virtual void save(OBStream *pStream)
Write the list to a stream.
void AddEntry(const MetRemixRecord &record)
Append an entry for one remix.
virtual ~JukeboxPlayList()
Release every entry and the vector.
void SwapEntries(int nFirst, int nSecond)
Exchange the entries at two positions.
JukeboxPlayList()
Construct an empty list.
Definition jukeboxplaylist.h:57
JukeboxPlayListEntry * GetEntry(int nIndex)
Return one entry by position.
virtual void load(IBStream *pStream)
Read the list back from a stream.
void clear()
Release every entry and empty the list.
void RemoveEntry(int nIndex)
Release and remove the entry at one position.
void RemoveStaleEntries()
Drop every entry the remix catalogue no longer knows.
Output half of the byte stream interface.
Definition obstream.h:25
One queued remix.
Definition jukeboxplaylist.h:19
int factory
Definition jukeboxplaylist.h:21
HxStr name
Definition jukeboxplaylist.h:20
One remix in the catalogue, with the appearances of the players who recorded it.
Definition metremixrecord.h:36