~drizzle-trunk/drizzle/development

1273.13.28 by Brian Aker
Adding in the container.
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
4
 *  Copyright (C) 2010 Sun Microsystems, Inc.
1273.13.28 by Brian Aker
Adding in the container.
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
2234 by Brian Aker
Mass removal of ifdef/endif in favor of pragma once.
21
#pragma once
1273.13.28 by Brian Aker
Adding in the container.
22
23
#include <set>
1669.3.3 by Brian Aker
Remove the need for tolower in retrieval of table functions.
24
#include <boost/unordered_map.hpp>
2173.2.1 by Monty Taylor
Fixes incorrect usage of include
25
#include <drizzled/util/string.h>
1273.13.28 by Brian Aker
Adding in the container.
26
1273.13.32 by Brian Aker
Big ole patch. This covers moving information_schema to old_* table names
27
namespace drizzled {
28
1273.13.28 by Brian Aker
Adding in the container.
29
class TableFunctionContainer {
1669.3.4 by Brian Aker
Fix up a few additional cases around case insensitive usage for
30
  typedef boost::unordered_map<std::string, plugin::TableFunction *, util::insensitive_hash, util::insensitive_equal_to> ToolMap;
1273.13.28 by Brian Aker
Adding in the container.
31
32
  ToolMap table_map;
33
34
public:
1273.13.32 by Brian Aker
Big ole patch. This covers moving information_schema to old_* table names
35
  plugin::TableFunction *getFunction(const std::string &path);
36
2318.8.6 by Olaf van der Spek
Add const
37
  void getNames(const std::string &predicate, std::set<std::string> &set_of_names);
1273.13.32 by Brian Aker
Big ole patch. This covers moving information_schema to old_* table names
38
39
40
  void addFunction(plugin::TableFunction *tool);
1273.13.28 by Brian Aker
Adding in the container.
41
2318.8.6 by Olaf van der Spek
Add const
42
  const ToolMap& getTableContainer() const
1273.13.28 by Brian Aker
Adding in the container.
43
  {
44
    return table_map;
45
  }
46
};
47
1273.14.5 by Monty Taylor
Merged trunk.
48
} /* namepsace drizzled */
49