aboutsummaryrefslogtreecommitdiffstats
path: root/src/cue/CueParser.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-03 12:00:03 +0100
committerMax Kellermann <max@duempel.org>2013-12-03 12:09:21 +0100
commitef68946e74d29f69ede42fa7b6d571a5ed62ebc7 (patch)
treec8f87ccc1fe2dfe8a9c438f645d06d1914725f41 /src/cue/CueParser.hxx
parenta5574f9189f67e673463cde3d4aa629e638cf298 (diff)
downloadmpd-ef68946e74d29f69ede42fa7b6d571a5ed62ebc7.tar.gz
mpd-ef68946e74d29f69ede42fa7b6d571a5ed62ebc7.tar.xz
mpd-ef68946e74d29f69ede42fa7b6d571a5ed62ebc7.zip
CueParser: use class TagBuilder
Diffstat (limited to 'src/cue/CueParser.hxx')
-rw-r--r--src/cue/CueParser.hxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/cue/CueParser.hxx b/src/cue/CueParser.hxx
index ea25d33cb..bcc759c37 100644
--- a/src/cue/CueParser.hxx
+++ b/src/cue/CueParser.hxx
@@ -21,6 +21,7 @@
#define MPD_CUE_PARSER_HXX
#include "check.h"
+#include "tag/TagBuilder.hxx"
#include "Compiler.h"
#include <string>
@@ -59,7 +60,14 @@ class CueParser {
/**
* Tags read from the CUE header.
*/
- Tag *header_tag;
+ TagBuilder header_tag;
+
+ /**
+ * Tags read for the current song (attribute #current). When
+ * #current gets moved to #previous, TagBuilder::Commit() will
+ * be called.
+ */
+ TagBuilder song_tag;
std::string filename;
@@ -121,7 +129,7 @@ public:
private:
gcc_pure
- Tag *GetCurrentTag();
+ TagBuilder *GetCurrentTag();
/**
* Commit the current song. It will be moved to "previous",