-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparser.h
More file actions
29 lines (22 loc) · 724 Bytes
/
Copy pathparser.h
File metadata and controls
29 lines (22 loc) · 724 Bytes
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
#pragma once
#include <string>
#include <vector>
#include <set>
#include "structures.h"
class BinaryReader;
class OsuDbParser {
public:
OsuDbParser();
~OsuDbParser();
bool Load(const std::string& path);
const OsuDbInfo& GetDbInfo() const { return dbInfo; }
const std::vector<BeatmapEntry>& GetBeatmaps() const { return dbInfo.beatmaps; }
const std::set<int>& GetBeatmapIds() const { return existingBeatmapIds; }
const std::set<int>& GetSetIds() const { return existingSetIds; }
private:
OsuDbInfo dbInfo;
std::set<int> existingBeatmapIds;
std::set<int> existingSetIds;
void FindNextBeatmap(BinaryReader& reader);
BeatmapEntry ParseBeatmap(BinaryReader& reader);
};