InterpretedChunksDecoder.hpp
1.08 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: InterpsGroupDecoder.hpp
* Author: mlenart
*
* Created on November 22, 2013, 10:35 PM
*/
#ifndef INTERPSGROUPDECODER_HPP
#define INTERPSGROUPDECODER_HPP
#include <string>
#include <vector>
#include <utility>
#include "charset/CharsetConverter.hpp"
#include "EncodedInterpretation.hpp"
#include "InterpretedChunk.hpp"
#include "EncodedInterpretation.hpp"
#include "case/CaseConverter.hpp"
#include "Environment.hpp"
#include "MorphInterpretation.hpp"
#include "case/CasePatternHelper.hpp"
#include "compressionByteUtils.hpp"
#include "const.hpp"
class InterpretedChunksDecoder {
public:
InterpretedChunksDecoder(const Environment& env) : env(env) {
}
virtual ~InterpretedChunksDecoder() {
}
virtual void decode(
unsigned int startNode,
unsigned int endNode,
const InterpretedChunk& interpretedChunk,
std::vector<MorphInterpretation>& out) const = 0;
protected:
const unsigned char* getInterpretationsPtr(const unsigned char* igPtr) const;
const Environment& env;
};
#endif /* INTERPSGROUPDECODER_HPP */