]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/letest/FontTableCache.h
ICU-3.13.tar.gz
[apple/icu.git] / icuSources / test / letest / FontTableCache.h
CommitLineData
b75a7d8f
A
1/*
2 **********************************************************************
3 * Copyright (C) 2003, International Business Machines
4 * Corporation and others. All Rights Reserved.
5 **********************************************************************
6 */
7
8#ifndef __FONTTABLECACHE_H
9
10#define __FONTTABLECACHE_H
11
12#include "layout/LETypes.h"
13
14struct FontTableCacheEntry;
15
16class FontTableCache
17{
18public:
19 FontTableCache();
20
21 virtual ~FontTableCache();
22
23 const void *find(LETag tableTag) const;
24
25protected:
26 virtual const void *readFontTable(LETag tableTag) const = 0;
27
28private:
29
30 void add(LETag tableTag, const void *table);
31
32 FontTableCacheEntry *fTableCache;
33 le_int32 fTableCacheCurr;
34 le_int32 fTableCacheSize;
35};
36
37#endif
38