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