~drizzle-trunk/drizzle/development

212.5.42 by Monty Taylor
Ding dong include is dead.
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
4
 *  Copyright (C) 2008 MySQL
5
 *
6
 *  This program is free software; you can redistribute it and/or modify
7
 *  it under the terms of the GNU General Public License as published by
8
 *  the Free Software Foundation; either version 2 of the License, or
9
 *  (at your option) any later version.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
1122.2.10 by Monty Taylor
Fixed all of the include guards.
21
#ifndef CLIENT_ERRNAME_H
22
#define CLIENT_ERRNAME_H
212.5.42 by Monty Taylor
Ding dong include is dead.
23
24
/* List of error names to error codes, available from 5.0 */
1090.2.1 by Robert Klahn
convert global_error_names from a c array to a c++ std::map
25
26
#include <string>
27
#include <map>
28
1090.2.3 by Robert Klahn
code review feedback changes
29
class ErrorCodes 
30
{
31
public:
1103.4.1 by Robert Klahn
make client/drizzletest.cc, new client/errname.cc compile in a reasonable amount of time and memory
32
  ErrorCodes();
33
34
  uint32_t getErrorCode(const std::string &error_msg);
1090.2.3 by Robert Klahn
code review feedback changes
35
private:
36
  std::map<std::string, uint32_t> error_code_map;
212.5.42 by Monty Taylor
Ding dong include is dead.
37
};
38
1122.2.10 by Monty Taylor
Fixed all of the include guards.
39
#endif /* CLIENT_ERRNAME_H */