1
by brian
clean slate |
1 |
/* Copyright (C) 2000 MySQL AB
|
2 |
||
3 |
This program is free software; you can redistribute it and/or modify
|
|
4 |
it under the terms of the GNU General Public License as published by
|
|
5 |
the Free Software Foundation; version 2 of the License.
|
|
6 |
||
7 |
This program is distributed in the hope that it will be useful,
|
|
8 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
9 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
10 |
GNU General Public License for more details.
|
|
11 |
||
12 |
You should have received a copy of the GNU General Public License
|
|
13 |
along with this program; if not, write to the Free Software
|
|
1802.10.2
by Monty Taylor
Update all of the copyright headers to include the correct address. |
14 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
|
1
by brian
clean slate |
15 |
|
16 |
||
2234
by Brian Aker
Mass removal of ifdef/endif in favor of pragma once. |
17 |
#pragma once
|
1
by brian
clean slate |
18 |
|
2252.1.3
by Olaf van der Spek
Common fwd |
19 |
#include <drizzled/common_fwd.h> |
20 |
||
21 |
namespace drizzled { |
|
22 |
||
23 |
class TYPELIB |
|
2151.5.1
by Olaf van der Spek
Make class of TYPELIB |
24 |
{
|
25 |
public: |
|
2275.2.20
by Olaf van der Spek
Typelib Options |
26 |
enum e_find_options |
27 |
{
|
|
28 |
e_none = 0, |
|
29 |
e_match_full = 1, |
|
30 |
e_dont_complete = 2, |
|
31 |
||
32 |
e_default = 3 |
|
33 |
};
|
|
34 |
||
35 |
TYPELIB* copy_typelib(memory::Root&) const; |
|
36 |
int find_type_or_exit(const char*, const char* option) const; |
|
37 |
int find_type(const char*, e_find_options) const; |
|
2151.5.3
by Olaf van der Spek
Make class of TYPELIB |
38 |
const char *get_type(unsigned int nr) const; |
2151.5.1
by Olaf van der Spek
Make class of TYPELIB |
39 |
|
2318.2.1
by Olaf van der Spek
Refactor |
40 |
uint64_t find_set(const char *x, uint32_t length, const charset_info_st*, |
2151.5.4
by Olaf van der Spek
Move strfunc functions into TYPELIB class |
41 |
char **err_pos, uint32_t *err_len, bool *set_warning) const; |
42 |
uint32_t find_type(const char *find, uint32_t length, bool part_match) const; |
|
2318.2.1
by Olaf van der Spek
Refactor |
43 |
uint32_t find_type2(const char *find, uint32_t length, const charset_info_st*) const; |
2151.5.4
by Olaf van der Spek
Move strfunc functions into TYPELIB class |
44 |
|
2151.5.1
by Olaf van der Spek
Make class of TYPELIB |
45 |
unsigned int count; |
46 |
const char *name; |
|
1
by brian
clean slate |
47 |
const char **type_names; |
48 |
unsigned int *type_lengths; |
|
2252.1.3
by Olaf van der Spek
Common fwd |
49 |
};
|
1
by brian
clean slate |
50 |
|
1280.1.10
by Monty Taylor
Put everything in drizzled into drizzled namespace. |
51 |
} /* namespace drizzled */ |
398.1.9
by Monty Taylor
Cleaned up stuff out of global.h. |
52 |