~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_cas.h

Merge Stewart's dead code removal

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
32
32
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_CAS_H
33
33
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_CAS_H
34
34
 
 
35
#include <drizzled/server_includes.h>
35
36
#include <drizzled/function/str/strfunc.h>
36
37
#include <drizzled/item/func.h>
37
38
#include <string>
38
39
 
39
40
/* implements memc_cas */
40
 
class MemcachedCas : public drizzled::Item_int_func
 
41
class MemcachedCas : public Item_int_func
41
42
{
42
 
  drizzled::String value;
43
 
  drizzled::String failure_buff;
 
43
  String value;
 
44
  String failure_buff;
44
45
public:
45
46
  MemcachedCas()
46
47
    :
47
48
      Item_int_func(),
48
 
      failure_buff("error ... ", &drizzled::my_charset_bin)
 
49
      failure_buff("error ... ", &my_charset_bin)
49
50
  {}
50
51
 
51
52
  const char *func_name() const