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 |
*
|
|
4 |
* Copyright (C) 2010 Sun Microsystems
|
|
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 |
||
21 |
#ifndef DRIZZLED_TABLE_FUNCTION_CONTAINER_H
|
|
22 |
#define DRIZZLED_TABLE_FUNCTION_CONTAINER_H
|
|
23 |
||
1429.3.1
by Monty Taylor
Use unordered_map from the upcoming c++0x standard instead of a homemade |
24 |
#include <drizzled/unordered_map.h> |
1273.13.28
by Brian Aker
Adding in the container. |
25 |
#include <set> |
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 { |
1429.3.1
by Monty Taylor
Use unordered_map from the upcoming c++0x standard instead of a homemade |
30 |
typedef unordered_map<std::string, plugin::TableFunction *> 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 |
||
37 |
void getNames(const std::string &predicate, |
|
38 |
std::set<std::string> &set_of_names); |
|
39 |
||
40 |
||
41 |
void addFunction(plugin::TableFunction *tool); |
|
1273.13.28
by Brian Aker
Adding in the container. |
42 |
|
43 |
const ToolMap& getTableContainer() |
|
44 |
{
|
|
45 |
return table_map; |
|
46 |
}
|
|
47 |
};
|
|
48 |
||
1273.14.5
by Monty Taylor
Merged trunk. |
49 |
} /* namepsace drizzled */ |
50 |
||
1273.13.29
by Brian Aker
Added file for include. |
51 |
#endif /* DRIZZLED_TABLE_FUNCTION_CONTAINER_H */ |