23 #include <drizzled/plugin/function.h>
24 #include <plugin/math_functions/functions.h>
25 #include <plugin/math_functions/abs.h>
26 #include <plugin/math_functions/acos.h>
27 #include <plugin/math_functions/asin.h>
28 #include <plugin/math_functions/atan.h>
29 #include <plugin/math_functions/cos.h>
30 #include <plugin/math_functions/log.h>
31 #include <plugin/math_functions/sin.h>
32 #include <plugin/math_functions/pow.h>
33 #include <plugin/math_functions/ln.h>
34 #include <plugin/math_functions/sqrt.h>
35 #include <plugin/math_functions/ceiling.h>
36 #include <plugin/math_functions/exp.h>
37 #include <plugin/math_functions/floor.h>
38 #include <plugin/math_functions/ord.h>
44 context.add(
new plugin::Create_function<Item_func_abs>(
"abs"));
45 context.add(
new plugin::Create_function<Item_func_acos>(
"acos"));
46 context.add(
new plugin::Create_function<Item_func_asin>(
"asin"));
47 context.add(
new plugin::Create_function<Item_func_atan>(
"atan"));
48 context.add(
new plugin::Create_function<Item_func_atan>(
"atan2"));
49 context.add(
new plugin::Create_function<Item_func_cos>(
"cos"));
50 context.add(
new plugin::Create_function<Item_func_log>(
"log"));
51 context.add(
new plugin::Create_function<Item_func_log2>(
"log2"));
52 context.add(
new plugin::Create_function<Item_func_log10>(
"log10"));
53 context.add(
new plugin::Create_function<Item_func_sin>(
"sin"));
54 context.add(
new plugin::Create_function<Item_func_pow>(
"pow"));
55 context.add(
new plugin::Create_function<Item_func_pow>(
"power"));
56 context.add(
new plugin::Create_function<Item_func_ln>(
"ln"));
57 context.add(
new plugin::Create_function<Item_func_sqrt>(
"sqrt"));
58 context.add(
new plugin::Create_function<Item_func_ceiling>(
"ceil"));
59 context.add(
new plugin::Create_function<Item_func_ceiling>(
"ceiling"));
60 context.add(
new plugin::Create_function<Item_func_exp>(
"exp"));
61 context.add(
new plugin::Create_function<Item_func_floor>(
"floor"));
62 context.add(
new plugin::Create_function<Item_func_ord>(
"ord"));
67 DRIZZLE_DECLARE_PLUGIN
72 "Brian Aker, Stewart Smith",
73 N_(
"Math functions (ABS, LOG, POW, LN, SQRT, CEIL, FLOOR, ORD, etc.)"),
79 DRIZZLE_DECLARE_PLUGIN_END;
TODO: Rename this file - func.h is stupid.