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