|
|
| version 1.2, 2001/12/17 18:44:51 | version 1.8.2.6, 2003/01/31 12:10:44 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: sql driver manager decl. | Parser: sql driver manager decl. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexander Petrosyan <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<StringPtr, CharsetPtr> { |
| Pool charsets_pool; | |
| public: | public: |
| Charsets(Pool& apool); | |
| ~Charsets(); | |
| Charset& get_charset(const String& name); | Charsets(); |
| Charset& get(StringPtr aname); | |
| void load_charset(StringPtr arequest_name, StringPtr arequest_file_spec); | |
| }; | }; |
| /// global | /// global |
| extern Charsets *charsets; | extern Charsets charsets; |
| #endif | #endif |