|
|
| version 1.5, 2002/02/08 08:30:12 | version 1.8.2.8.2.3, 2003/03/21 14:49:00 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: sql driver manager decl. | Parser: sql driver manager decl. |
| Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) |
| $Id$ | |
| global sql driver manager, must be thread-safe | global sql driver manager, must be thread-safe |
| */ | */ |
| Line 13 | Line 11 |
| #ifndef PA_CHARSETS_H | #ifndef PA_CHARSETS_H |
| #define PA_CHARSETS_H | #define PA_CHARSETS_H |
| static const char* IDENT_CHARSETS_H="$Date$"; | |
| #include "pa_hash.h" | #include "pa_hash.h" |
| #include "pa_charset.h" | |
| class Charsets : public Hash { | class Charsets: public Hash<const StringBody&, Charset*> { |
| public: | public: |
| Charsets(Pool& apool); | |
| ~Charsets(); | |
| Charset& get_charset(const String& name); | Charsets(); |
| void load_charset(const String& request_name, const String& request_file_spec); | |
| }; | |
| /// global | Charset& get(const String& aname); |
| extern Charsets *charsets; | |
| void load_charset(const String& aname, const String& afile_spec); | |
| }; | |
| //@{ globals | |
| extern Charset UTF8_charset; | |
| extern Charsets charsets; | |
| //@} | |
| #endif | #endif |