Drizzled Public API Documentation

functions.cc

00001 /* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
00002  *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
00003  *
00004  *  Copyright (C) 2010 Brian Aker
00005  *  Copyright (C) 2010 Stewart Smith
00006  *
00007  *  This program is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License as published by
00009  *  the Free Software Foundation; either version 2 of the License, or
00010  *  (at your option) any later version.
00011  *
00012  *  This program is distributed in the hope that it will be useful,
00013  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  *  GNU General Public License for more details.
00016  *
00017  *  You should have received a copy of the GNU General Public License
00018  *  along with this program; if not, write to the Free Software
00019  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00020  */
00021 
00022 #include <config.h>
00023 
00024 #include <drizzled/plugin.h>
00025 #include <plugin/string_functions/functions.h>
00026 
00027 using namespace drizzled;
00028 
00029 static int init(drizzled::module::Context &context)
00030 {
00031   context.add(new plugin::Create_function<Item_func_elt>("elt"));
00032   context.add(new plugin::Create_function<Item_func_format>("format"));
00033   context.add(new plugin::Create_function<Item_func_quote>("quote"));
00034   context.add(new plugin::Create_function<drizzled::string_functions::Regex>("regex"));
00035 
00036   return 0;
00037 }
00038 
00039 DRIZZLE_DECLARE_PLUGIN
00040 {
00041   DRIZZLE_VERSION_ID,
00042   "String Functions",
00043   "1.0",
00044   "Brian Aker, Stewart Smith",
00045   "String Functions.",
00046   PLUGIN_LICENSE_GPL,
00047   init,
00048   NULL,
00049   NULL
00050 }
00051 DRIZZLE_DECLARE_PLUGIN_END;