os/textandloc/fontservices/textshaperplugin/test/letest/FontTableCache.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/textandloc/fontservices/textshaperplugin/test/letest/FontTableCache.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,38 @@
     1.4 +/*
     1.5 + **********************************************************************
     1.6 + *   Copyright (C) 2003, International Business Machines
     1.7 + *   Corporation and others.  All Rights Reserved.
     1.8 + **********************************************************************
     1.9 + */
    1.10 +
    1.11 +#ifndef __FONTTABLECACHE_H
    1.12 +
    1.13 +#define __FONTTABLECACHE_H
    1.14 +
    1.15 +#include "layout/LETypes.h"
    1.16 +
    1.17 +struct FontTableCacheEntry;
    1.18 +
    1.19 +class FontTableCache
    1.20 +{
    1.21 +public:
    1.22 +    FontTableCache();
    1.23 +
    1.24 +    virtual ~FontTableCache();
    1.25 +
    1.26 +    const void *find(LETag tableTag) const;
    1.27 +
    1.28 +protected:
    1.29 +    virtual const void *readFontTable(LETag tableTag) const = 0;
    1.30 +
    1.31 +private:
    1.32 +
    1.33 +    void add(LETag tableTag, const void *table);
    1.34 +
    1.35 +    FontTableCacheEntry *fTableCache;
    1.36 +    le_int32 fTableCacheCurr;
    1.37 +    le_int32 fTableCacheSize;
    1.38 +};
    1.39 +
    1.40 +#endif
    1.41 +