Environment.hpp
1.3 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
/*
* File: Environment.hpp
* Author: mlenart
*
* Created on 22 styczeń 2014, 12:08
*/
#ifndef ENVIRONMENT_HPP
#define ENVIRONMENT_HPP
#include "charset/CaseConverter.hpp"
#include "charset/CharsetConverter.hpp"
#include "const.hpp"
#include "Tagset.hpp"
class Environment {
public:
Environment(
const Tagset& analyzerTagset,
const Tagset& generatorTagset,
MorfeuszCharset charset);
void setCharset(MorfeuszCharset charset);
const CharsetConverter& getCharsetConverter() const;
void setAnalyzerTagset(const Tagset& tagset);
const Tagset& getAnalyzerTagset() const;
void setGeneratorTagset(const Tagset& tagset);
const Tagset& getGeneratorTagset() const;
const CaseConverter& getCaseConverter() const;
virtual ~Environment();
private:
const CharsetConverter* currentCharsetConverter;
const UTF8CharsetConverter utf8CharsetConverter;
const ISO8859_2_CharsetConverter isoCharsetConverter;
const Windows_1250_CharsetConverter cp1250CharsetConverter;
const CP852_CharsetConverter cp852CharsetConverter;
Tagset analyzerTagset;
Tagset generatorTagset;
const CaseConverter caseConverter;
const CharsetConverter* getCharsetConverter(MorfeuszCharset charset) const;
};
#endif /* ENVIRONMENT_HPP */