Annotation of parser3/src/include/pa_charsets.h, revision 1.8.2.8.2.5
1.1 paf 1: /** @file
2: Parser: sql driver manager decl.
3:
1.8.2.7 paf 4: Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com)
1.5 paf 5: Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
1.1 paf 6:
7:
8: global sql driver manager, must be thread-safe
9: */
10:
11: #ifndef PA_CHARSETS_H
12: #define PA_CHARSETS_H
1.6 paf 13:
1.8.2.8.2.5! paf 14: static const char* IDENT_CHARSETS_H="$Date: 2003/03/24 13:43:41 $";
1.1 paf 15:
16: #include "pa_hash.h"
1.8.2.2 paf 17: #include "pa_charset.h"
1.1 paf 18:
1.8.2.8.2.5! paf 19: /// convention: use UPPERCASE keys
1.8.2.8.2.4 paf 20: class Charsets: public Hash<const StringBody, Charset*> {
1.1 paf 21: public:
1.8.2.3 paf 22:
23: Charsets();
24:
1.8.2.8.2.5! paf 25: Charset& get(const StringBody ANAME);
1.2 paf 26:
1.8.2.8.2.5! paf 27: void load_charset(Request_charsets& charsets, const StringBody ANAME, const String& afile_spec);
1.1 paf 28: };
29:
1.8.2.8 paf 30: //@{ globals
1.8.2.8.2.3 paf 31: extern Charset UTF8_charset;
1.8.2.3 paf 32: extern Charsets charsets;
1.8.2.8 paf 33: //@}
1.1 paf 34:
35: #endif
E-mail: