~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_increment.h

  • Committer: Monty Taylor
  • Date: 2009-12-25 02:37:09 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1258.
  • Revision ID: mordred@inaugust.com-20091225023709-r5xr0agiyzyfbhin
pandora-buildĀ v0.88

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
35
35
#include <drizzled/function/str/strfunc.h>
36
36
 
37
37
/* implements memc_increment */
38
 
class MemcachedIncrement : public drizzled::Item_str_func
 
38
class MemcachedIncrement : public Item_str_func
39
39
{
40
40
public:
41
41
  MemcachedIncrement()
42
42
    : 
43
43
      Item_str_func(),
44
 
      failure_buff("FAILURE", &drizzled::my_charset_bin)
 
44
      failure_buff("FAILURE", &my_charset_bin)
45
45
  {}
46
46
 
47
47
  const char *func_name() const
49
49
    return "memc_increment";
50
50
  }
51
51
 
52
 
  drizzled::String *val_str(drizzled::String *);
 
52
  String *val_str(String *);
53
53
 
54
54
  void fix_length_and_dec()
55
55
  {
57
57
  }
58
58
 
59
59
private:
60
 
  drizzled::String failure_buff;
61
 
  drizzled::String buffer;
 
60
  String failure_buff;
 
61
  String buffer;
62
62
};
63
63
 
64
64
#endif /* PLUGIN_MEMCACHED_FUNCTIONS_MEMC_INCREMENT_H */