--- parser3/src/include/pa_charsets.h 2001/12/26 08:46:13 1.3 +++ parser3/src/include/pa_charsets.h 2003/01/28 11:38:49 1.8.2.3 @@ -1,10 +1,8 @@ /** @file Parser: sql driver manager decl. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_charsets.h,v 1.3 2001/12/26 08:46:13 paf Exp $ + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) global sql driver manager, must be thread-safe @@ -13,19 +11,24 @@ #ifndef PA_CHARSETS_H #define PA_CHARSETS_H +static const char* IDENT_CHARSETS_H="$Date: 2003/01/28 11:38:49 $"; + #include "pa_hash.h" +#include "pa_charset.h" -class Charsets : public Hash { +class Charsets: public Hash { + Pool charsets_pool; public: - Charsets(Pool& apool); - ~Charsets(); - Charset& get_charset(const String& name); - void load_charset(const String& request_name, const String& request_file_spec); + Charsets(); + + CharsetPtr get(ConstStringPtr aname); + + void load_charset(ConstStringPtr arequest_name, ConstStringPtr arequest_file_spec); }; /// global -extern Charsets *charsets; +extern Charsets charsets; #endif