5891N/A/*
5891N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5891N/A *
5891N/A * This code is free software; you can redistribute it and/or modify it
5891N/A * under the terms of the GNU General Public License version 2 only, as
5891N/A * published by the Free Software Foundation. Oracle designates this
5891N/A * particular file as subject to the "Classpath" exception as provided
5891N/A * by Oracle in the LICENSE file that accompanied this code.
5891N/A *
5891N/A * This code is distributed in the hope that it will be useful, but WITHOUT
5891N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
5891N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
5891N/A * version 2 for more details (a copy is included in the LICENSE file that
5891N/A * accompanied this code).
5891N/A *
5891N/A * You should have received a copy of the GNU General Public License version
5891N/A * 2 along with this work; if not, write to the Free Software Foundation,
5891N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
5891N/A *
5891N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
5891N/A * or visit www.oracle.com if you need additional information or have any
5891N/A * questions.
5891N/A *
5891N/A */
5891N/A
5891N/A/*
5891N/A *
5891N/A * (C) Copyright IBM Corp. and others 1998-2013 - All Rights Reserved
5891N/A *
5891N/A */
5891N/A
5891N/A#ifndef __STATETABLEPROCESSOR2_H
5891N/A#define __STATETABLEPROCESSOR2_H
5891N/A
5891N/A/**
5891N/A * \file
5891N/A * \internal
5891N/A */
5891N/A
5891N/A#include "LETypes.h"
5891N/A#include "MorphTables.h"
5891N/A#include "MorphStateTables.h"
5891N/A#include "SubtableProcessor2.h"
5891N/A#include "LookupTables.h"
5891N/A
5891N/AU_NAMESPACE_BEGIN
5891N/A
5891N/Aclass LEGlyphStorage;
5891N/A
5891N/Aclass StateTableProcessor2 : public SubtableProcessor2
5891N/A{
5891N/Apublic:
5980N/A void process(LEGlyphStorage &glyphStorage, LEErrorCode &success);
5891N/A
5891N/A virtual void beginStateTable() = 0;
5891N/A
5980N/A virtual le_uint16 processStateEntry(LEGlyphStorage &glyphStorage, le_int32 &currGlyph, EntryTableIndex2 index, LEErrorCode &success) = 0;
5891N/A
5891N/A virtual void endStateTable() = 0;
5891N/A
5891N/Aprotected:
5980N/A StateTableProcessor2(const LEReferenceTo<MorphSubtableHeader2> &morphSubtableHeader, LEErrorCode &success);
5891N/A virtual ~StateTableProcessor2();
5891N/A
5891N/A StateTableProcessor2();
5891N/A
5891N/A le_int32 dir;
5891N/A le_uint16 format;
5891N/A le_uint32 nClasses;
5891N/A le_uint32 classTableOffset;
5891N/A le_uint32 stateArrayOffset;
5891N/A le_uint32 entryTableOffset;
5891N/A
5980N/A LEReferenceTo<LookupTable> classTable;
5980N/A LEReferenceToArrayOf<EntryTableIndex2> stateArray;
5980N/A LEReferenceTo<MorphStateTableHeader2> stateTableHeader;
5980N/A LEReferenceTo<StateTableHeader2> stHeader; // for convenience
5891N/A
5891N/Aprivate:
5891N/A StateTableProcessor2(const StateTableProcessor2 &other); // forbid copying of this class
5891N/A StateTableProcessor2 &operator=(const StateTableProcessor2 &other); // forbid copying of this class
5891N/A};
5891N/A
5891N/AU_NAMESPACE_END
5891N/A#endif