os/textandloc/fontservices/textshaperplugin/include/FontTableCache.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 #include <e32std.h>
    14 
    15 struct FontTableCacheEntry;
    16 
    17 class FontTableCache
    18 {
    19 public:
    20     FontTableCache();
    21 
    22     virtual ~FontTableCache();
    23 
    24     const void *find(LETag tableTag) const;
    25 
    26 protected:
    27     virtual const void *readFontTable(LETag tableTag) const = 0;
    28 
    29 private:
    30 
    31     void add(LETag tableTag, const void *table);
    32 
    33     FontTableCacheEntry *fTableCache;
    34     le_int32 fTableCacheCurr;
    35     le_int32 fTableCacheSize;
    36 };
    37 
    38 #endif
    39