~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_decrement.h

  • Committer: Brian Aker
  • Date: 2009-11-18 06:24:48 UTC
  • mfrom: (1220.1.15 staging)
  • Revision ID: brian@gaz-20091118062448-o36lo3yv81sc6u9z
Merge Brian + Stewart

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
33
33
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_DECREMENT_H
34
34
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_DECREMENT_H
35
35
 
 
36
#include <drizzled/server_includes.h>
36
37
#include <drizzled/function/str/strfunc.h>
37
38
 
38
39
/* implements memc_decrement */
39
 
class MemcachedDecrement : public drizzled::Item_str_func
 
40
class MemcachedDecrement : public Item_str_func
40
41
{
41
42
public:
42
43
  MemcachedDecrement()
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_decrement";
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 failure_buff;
62
 
  drizzled::String buffer;
 
62
  String failure_buff;
 
63
  String buffer;
63
64
};
64
65
 
65
66
#endif /* PLUGIN_MEMCACHED_FUNCTIONS_MEMC_DECREMENT_H */