Drizzled Public API Documentation
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
typelib.h
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
14
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */
15
16
17
#pragma once
18
19
#include <drizzled/common_fwd.h>
20
21
namespace
drizzled {
22
23
class
TYPELIB
24
{
25
public
:
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
;
38
const
char
*get_type(
unsigned
int
nr)
const
;
39
40
uint64_t find_set(
const
char
*x, uint32_t length,
const
charset_info_st
*,
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
;
43
uint32_t find_type2(
const
char
*find, uint32_t length,
const
charset_info_st
*)
const
;
44
45
unsigned
int
count;
46
const
char
*name;
47
const
char
**type_names;
48
unsigned
int
*type_lengths;
49
};
50
51
}
/* namespace drizzled */
52
drizzled::charset_info_st
Definition:
charset.h:228
drizzled::memory::Root
Definition:
root.h:57
drizzled::option
Definition:
option.h:46
drizzled::TYPELIB
Definition:
typelib.h:23
drizzled
typelib.h
Generated on Mon Apr 28 2014 10:07:06 for drizzle by
1.8.6