]> git.saurik.com Git - apple/icu.git/blame - icuSources/layout/SegmentSingleProcessor.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / layout / SegmentSingleProcessor.h
CommitLineData
b75a7d8f
A
1/*
2 * @(#)SegmentSingleProcessor.h 1.6 00/03/15
3 *
4 * (C) Copyright IBM Corp. 1998-2003 - All Rights Reserved
5 *
6 */
7
8#ifndef __SEGMENTSINGLEPROCESSOR_H
9#define __SEGMENTSINGLEPROCESSOR_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
22U_NAMESPACE_BEGIN
23
24class SegmentSingleProcessor : public NonContextualGlyphSubstitutionProcessor
25{
26public:
27 virtual void process(LEGlyphID *glyphs, le_int32 *charIndices, le_int32 glyphCount);
28
29 SegmentSingleProcessor(const MorphSubtableHeader *morphSubtableHeader);
30
31 virtual ~SegmentSingleProcessor();
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
47private:
48 SegmentSingleProcessor();
49
50protected:
51 const SegmentSingleLookupTable *segmentSingleLookupTable;
52
53private:
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
62U_NAMESPACE_END
63#endif
64