]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/StateTableProcessor.h
ICU-491.11.1.tar.gz
[apple/icu.git] / icuSources / layout / StateTableProcessor.h
CommitLineData
b75a7d8f 1/*
b75a7d8f 2 *
374ca955 3 * (C) Copyright IBM Corp. 1998-2004 - 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
20U_NAMESPACE_BEGIN
21
374ca955
A
22class LEGlyphStorage;
23
b75a7d8f
A
24class StateTableProcessor : public SubtableProcessor
25{
26public:
374ca955 27 void process(LEGlyphStorage &glyphStorage);
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
35protected:
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
52private:
53 StateTableProcessor(const StateTableProcessor &other); // forbid copying of this class
54 StateTableProcessor &operator=(const StateTableProcessor &other); // forbid copying of this class
55};
56
57U_NAMESPACE_END
58#endif