~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_misc.h

  • Committer: Brian Aker
  • Date: 2010-01-22 00:53:13 UTC
  • Revision ID: brian@gaz-20100122005313-jmizcbcdi1lt4tcx
Revert db patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 * Copyright (C) 2009, Patrick "CaptTofu" Galbraith, Padraig O'Sullivan
 
4
 * Copyright (c) 2009, Patrick "CaptTofu" Galbraith, Padraig O'Sullivan
5
5
 * All rights reserved.
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
36
36
#include <drizzled/function/str/strfunc.h>
37
37
 
38
38
/* implements memc_libmemcached_version */
39
 
class MemcachedVersion : public drizzled::Item_str_func
 
39
class MemcachedVersion : public Item_str_func
40
40
{
41
41
public:
42
42
  MemcachedVersion()
43
43
    : 
44
44
      Item_str_func(),
45
 
      failure_buff("FAILURE", &drizzled::my_charset_bin)
 
45
      failure_buff("FAILURE", &my_charset_bin)
46
46
  {}
47
47
 
48
48
  const char *func_name() const
50
50
    return "memc_libmemcached_version";
51
51
  }
52
52
 
53
 
  drizzled::String *val_str(drizzled::String *);
 
53
  String *val_str(String *);
54
54
 
55
55
  void fix_length_and_dec()
56
56
  {
58
58
  }
59
59
 
60
60
private:
61
 
  drizzled::String buffer;
62
 
  drizzled::String failure_buff;
 
61
  String buffer;
 
62
  String failure_buff;
63
63
};
64
64
 
65
65
/* implements memc_server_count */
66
 
class MemcachedServerCount : public drizzled::Item_int_func
 
66
class MemcachedServerCount : public Item_int_func
67
67
{
68
68
public:
69
69
  MemcachedServerCount()