~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_misc.h

Blackhole, CSV, Pool of Threads,Single Thread, Multi Thread.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_MISC_H
33
33
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_MISC_H
34
34
 
 
35
#include <drizzled/server_includes.h>
35
36
#include <drizzled/item/func.h>
36
37
#include <drizzled/function/str/strfunc.h>
37
38
 
38
39
/* implements memc_libmemcached_version */
39
 
class MemcachedVersion : public drizzled::Item_str_func
 
40
class MemcachedVersion : public Item_str_func
40
41
{
41
42
public:
42
43
  MemcachedVersion()
43
44
    : 
44
45
      Item_str_func(),
45
 
      failure_buff("FAILURE", &drizzled::my_charset_bin)
 
46
      failure_buff("FAILURE", &my_charset_bin)
46
47
  {}
47
48
 
48
49
  const char *func_name() const
50
51
    return "memc_libmemcached_version";
51
52
  }
52
53
 
53
 
  drizzled::String *val_str(drizzled::String *);
 
54
  String *val_str(String *);
54
55
 
55
56
  void fix_length_and_dec()
56
57
  {
58
59
  }
59
60
 
60
61
private:
61
 
  drizzled::String buffer;
62
 
  drizzled::String failure_buff;
 
62
  String buffer;
 
63
  String failure_buff;
63
64
};
64
65
 
65
66
/* implements memc_server_count */
66
 
class MemcachedServerCount : public drizzled::Item_int_func
 
67
class MemcachedServerCount : public Item_int_func
67
68
{
68
69
public:
69
70
  MemcachedServerCount()