~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/plugin/function.h

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/sql_list.h>
26
26
#include <drizzled/item/bin_string.h>
27
27
#include "drizzled/plugin/plugin.h"
 
28
#include "drizzled/function/func.h"
28
29
 
29
30
#include <string>
30
31
#include <vector>
50
51
  virtual result_type operator()(argument_type root) const= 0;
51
52
  virtual ~Function() {}
52
53
 
 
54
  /**
 
55
   * Add a new Function factory to the list of factories we manage.
 
56
   */
 
57
  static void add(const plugin::Function *function_obj);
 
58
 
 
59
  /**
 
60
   * Remove a Function factory from the list of factory we manage.
 
61
   */
 
62
  static void remove(const plugin::Function *function_obj);
 
63
 
 
64
  /**
 
65
   * Accept a new connection (Protocol object) on one of the configured
 
66
   * listener interfaces.
 
67
   */
 
68
  static const plugin::Function *get(const char *name, size_t len=0);
 
69
 
53
70
};
54
71
 
55
72
template<class T>
67
84
  }
68
85
};
69
86
 
70
 
} /* end namespace plugin */
71
 
} /* end namespace drizzled */
 
87
} /* namespace plugin */
 
88
} /* namespace drizzled */
72
89
 
73
90
 
74
91
#endif /* DRIZZLED_PLUGIN_FUNCTION_H */