--- parser3/src/include/pa_charsets.h 2002/02/08 08:30:12 1.5 +++ parser3/src/include/pa_charsets.h 2005/08/09 08:14:49 1.13 @@ -1,11 +1,9 @@ /** @file Parser: sql driver manager decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_charsets.h,v 1.5 2002/02/08 08:30:12 paf Exp $ - global sql driver manager, must be thread-safe */ @@ -13,19 +11,25 @@ #ifndef PA_CHARSETS_H #define PA_CHARSETS_H +static const char * const IDENT_CHARSETS_H="$Date: 2005/08/09 08:14:49 $"; + #include "pa_hash.h" +#include "pa_charset.h" -class Charsets : public Hash { +/// convention: use UPPERCASE keys +class Charsets: public Hash { public: - Charsets(Pool& apool); - ~Charsets(); - Charset& get_charset(const String& name); - void load_charset(const String& request_name, const String& request_file_spec); -}; + Charsets(); -/// global -extern Charsets *charsets; + Charset& get(const String::Body ANAME); + + void load_charset(Request_charsets& charsets, const String::Body ANAME, const String& afile_spec); +}; +//@{ globals +extern Charset UTF8_charset; +extern Charsets charsets; +//@} #endif