-
Notifications
You must be signed in to change notification settings - Fork 0
/
lines.h
36 lines (25 loc) · 847 Bytes
/
lines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#ifndef lines_h__
#define lines_h__
#include <string>
#include <vector>
#include "gen_win7shell.h"
#include "metadata.h"
class lines
{
public:
lines(const sSettings &Settings, MetaData &Metadata, const HWND WinampWnd);
inline std::wstring::size_type GetNumberOfLines() const { return m_texts.size(); }
inline std::wstring GetLineText(int index) const { return m_texts[index]; }
inline linesettings GetLineSettings(int index) const { return m_linesettings[index]; }
void Parse();
private:
void ProcessLine(int index);
std::wstring MetaWord(const std::wstring &word);
std::vector<std::wstring> m_texts;
std::vector<linesettings> m_linesettings;
MetaData &m_metadata;
const sSettings &m_settings;
const HWND m_hwnd;
};
// Inline
#endif // lines_h__