WvStreams
|
00001 /* -*- Mode: C++ -*- 00002 * Worldvisions Weaver Software: 00003 * Copyright (C) 2005 Net Integration Technologies, Inc. 00004 * 00005 * Definition for the WvStringCache class. 00006 */ 00007 #ifndef __WVSTRINGCACHE_H 00008 #define __WVSTRINGCACHE_H 00009 00010 #include "wvstringtable.h" 00011 00032 class WvStringCache 00033 { 00034 static WvStringTable *t; 00035 static int refcount; 00036 static size_t clean_threshold; 00037 00038 public: 00039 WvStringCache(); 00040 ~WvStringCache(); 00041 00043 WvString get(WvStringParm s); 00044 00046 void clean(); 00047 }; 00048 00049 00050 #endif // __WVSTRINGCACHE_H