]> git.saurik.com Git - apple/icu.git/blob - icuSources/layout/SimpleArrayProcessor.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / layout / SimpleArrayProcessor.h
1 /*
2 * @(#)SimpleArrayProcessor.h 1.6 00/03/15
3 *
4 * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
5 *
6 */
7
8 #ifndef __SIMPLEARRAYPROCESSOR_H
9 #define __SIMPLEARRAYPROCESSOR_H
10
11 /**
12 * \file
13 * \internal
14 */
15
16 #include "LETypes.h"
17 #include "MorphTables.h"
18 #include "SubtableProcessor.h"
19 #include "NonContextualGlyphSubst.h"
20 #include "NonContextualGlyphSubstProc.h"
21
22 U_NAMESPACE_BEGIN
23
24 class SimpleArrayProcessor : public NonContextualGlyphSubstitutionProcessor
25 {
26 public:
27 virtual void process(LEGlyphID *glyphs, le_int32 *charIndices, le_int32 glyphCount);
28
29 SimpleArrayProcessor(const MorphSubtableHeader *morphSubtableHeader);
30
31 virtual ~SimpleArrayProcessor();
32
33 /**
34 * ICU "poor man's RTTI", returns a UClassID for the actual class.
35 *
36 * @draft ICU 2.2
37 */
38 virtual inline UClassID getDynamicClassID() const { return getStaticClassID(); }
39
40 /**
41 * ICU "poor man's RTTI", returns a UClassID for this class.
42 *
43 * @draft ICU 2.2
44 */
45 static inline UClassID getStaticClassID() { return (UClassID)&fgClassID; }
46
47 private:
48 SimpleArrayProcessor();
49
50 protected:
51 const SimpleArrayLookupTable *simpleArrayLookupTable;
52
53 private:
54
55 /**
56 * The address of this static class variable serves as this class's ID
57 * for ICU "poor man's RTTI".
58 */
59 static const char fgClassID;
60 };
61
62 U_NAMESPACE_END
63 #endif
64