--- parser3/src/include/pa_charsets.h 2001/12/15 21:51:43 1.1 +++ parser3/src/include/pa_charsets.h 2012/03/16 09:24:09 1.15 @@ -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.1 2001/12/15 21:51:43 paf Exp $ + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) global sql driver manager, must be thread-safe @@ -13,16 +11,25 @@ #ifndef PA_CHARSETS_H #define PA_CHARSETS_H +#define IDENT_PA_CHARSETS_H "$Id: pa_charsets.h,v 1.15 2012/03/16 09:24:09 moko Exp $" + #include "pa_hash.h" +#include "pa_charset.h" -class Charsets : public Hash { +/// convention: use UPPERCASE keys +class Charsets: public HashString { public: - Charsets(Pool& apool); - ~Charsets(); -}; -/// global -extern Charsets *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