blob: a6ec5ad325a8dacd6980148af3394cb35fe7815e (
plain)
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
|
#ifndef DATABASE_H
#define DATABASE_H
#include "music.h"
#include "tag.h"
#include <soci/soci.h>
#include <boost/filesystem.hpp>
#include <vector>
#include <map>
#include <string>
class Database {
private:
soci::session sql;
public:
Database();
virtual ~Database();
std::vector<MusicListing::p> find(std::map<std::string, std::string> search);
std::vector<MusicListing::p> find(std::string search);
void update(fs::path track, Tag::p tag);
};
#endif
|