summaryrefslogtreecommitdiff
path: root/overrides.h
blob: 23ea229f32a97ccfea0859b015edd7f665207bf3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __TVSCRAPER_OVERRIDES_H
#define __TVSCRAPER_OVERRIDES_H

using namespace std;

// --- cOverRides --------------------------------------------------------

class cOverRides {
private:
    vector<string> ignores;
    map<string,scrapType> searchTypes;
    map<string,string> substitutes;
    void ReadConfigLine(string line);
public:
    cOverRides(void);
    virtual ~cOverRides(void);
    void ReadConfig(string confDir);
    bool Ignore(string title);
    string Substitute(string title);
    scrapType Type(string title);
    void Dump(void);
}; 
#endif //__TVSCRAPER_OVERRIDES_H