]>
Commit | Line | Data |
---|---|---|
b75a7d8f | 1 | /* |
b75a7d8f | 2 | * |
57a6839d | 3 | * (C) Copyright IBM Corp. 1998-2013 - All Rights Reserved |
b75a7d8f A |
4 | * |
5 | */ | |
6 | ||
7 | #ifndef __STATETABLEPROCESSOR_H | |
8 | #define __STATETABLEPROCESSOR_H | |
9 | ||
10 | /** | |
11 | * \file | |
12 | * \internal | |
13 | */ | |
14 | ||
15 | #include "LETypes.h" | |
16 | #include "MorphTables.h" | |
17 | #include "MorphStateTables.h" | |
18 | #include "SubtableProcessor.h" | |
19 | ||
20 | U_NAMESPACE_BEGIN | |
21 | ||
374ca955 A |
22 | class LEGlyphStorage; |
23 | ||
b75a7d8f A |
24 | class StateTableProcessor : public SubtableProcessor |
25 | { | |
26 | public: | |
57a6839d | 27 | void process(LEGlyphStorage &glyphStorage, LEErrorCode &success); |
b75a7d8f A |
28 | |
29 | virtual void beginStateTable() = 0; | |
30 | ||
374ca955 | 31 | virtual ByteOffset processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex index) = 0; |
b75a7d8f A |
32 | |
33 | virtual void endStateTable() = 0; | |
34 | ||
35 | protected: | |
57a6839d | 36 | StateTableProcessor(const LEReferenceTo<MorphSubtableHeader> &morphSubtableHeader, LEErrorCode &success); |
b75a7d8f A |
37 | virtual ~StateTableProcessor(); |
38 | ||
39 | StateTableProcessor(); | |
40 | ||
41 | le_int16 stateSize; | |
42 | ByteOffset classTableOffset; | |
43 | ByteOffset stateArrayOffset; | |
44 | ByteOffset entryTableOffset; | |
45 | ||
57a6839d | 46 | LEReferenceTo<ClassTable> classTable; |
b75a7d8f A |
47 | TTGlyphID firstGlyph; |
48 | TTGlyphID lastGlyph; | |
49 | ||
57a6839d A |
50 | LEReferenceTo<MorphStateTableHeader> stateTableHeader; |
51 | LEReferenceTo<StateTableHeader> stHeader; // for convenience | |
b75a7d8f A |
52 | |
53 | private: | |
54 | StateTableProcessor(const StateTableProcessor &other); // forbid copying of this class | |
55 | StateTableProcessor &operator=(const StateTableProcessor &other); // forbid copying of this class | |
56 | }; | |
57 | ||
58 | U_NAMESPACE_END | |
59 | #endif |