summaryrefslogtreecommitdiff
path: root/libs/mediaScan/include/MediainfoReader.h
blob: f45b5e70eec611a7d8514c4b248cbd20ed50b335 (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
28
29
30
31
32
33
34
/*
 * File:   MediainfoReader.h
 * Author: django
 *
 * Created on 30. Juli 2012, 15:03
 */

#ifndef MEDIAINFOREADER_H
#define	MEDIAINFOREADER_H

#include <tuple>
#include <string>
#include <vector>

class cLineReader;
class cMediainfoReader {
public:
  typedef std::tuple <std::string, std::string> InfoEntry;

  cMediainfoReader(cLineReader *LineReader);
  virtual ~cMediainfoReader();

  void AddValuableKey(const char *Key);
  void Close(void);
  bool IsValuable(std::string &key);
  InfoEntry *ReadEntry(void);

private:
  cLineReader *reader;
  std::vector<std::string> valuableKeys;
  };

#endif	/* MEDIAINFOREADER_H */