Play-/Source/discimages/CueSheet.h

48 lines
786 B
C
Raw Permalink Normal View History

2020-10-04 09:32:55 -04:00
#pragma once
#include <memory>
#include <vector>
#include "Stream.h"
class CCueSheet
{
public:
struct COMMAND
{
virtual ~COMMAND() = default;
};
typedef std::unique_ptr<COMMAND> CommandPtr;
typedef std::vector<CommandPtr> CommandList;
struct COMMAND_FILE : public COMMAND
{
std::string filename;
std::string filetype;
};
struct COMMAND_TRACK : public COMMAND
{
uint32 number;
std::string datatype;
};
struct COMMAND_INDEX : public COMMAND
{
uint32 number;
std::string time;
};
CCueSheet() = default;
CCueSheet(Framework::CStream&);
const CommandList& GetCommands() const;
private:
2020-10-04 15:52:13 -04:00
void Read(Framework::CStream&);
2020-10-04 09:32:55 -04:00
std::string ReadCommand(Framework::CStream&);
std::string ReadPath(Framework::CStream&);
std::vector<CommandPtr> m_commands;
};