~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/memcached_functions/memc_stats.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
32
32
#ifndef PLUGIN_MEMCACHED_FUNCTIONS_MEMC_STATS_H
33
33
#define PLUGIN_MEMCACHED_FUNCTIONS_MEMC_STATS_H
34
34
 
 
35
#include <drizzled/server_includes.h>
35
36
#include <drizzled/item/func.h>
36
37
 
37
38
#include <libmemcached/memcached.h>
38
39
 
39
40
/* implements memc_stats */
40
 
class MemcachedStats: public drizzled::Item_str_func
 
41
class MemcachedStats: public Item_str_func
41
42
{
42
43
public:
43
44
  MemcachedStats()
44
45
    :
45
46
      Item_str_func(),
46
 
      failure_buff("FAILURE: ", &drizzled::my_charset_bin),
47
 
      results_buff("", &drizzled::my_charset_bin)
 
47
      failure_buff("FAILURE: ", &my_charset_bin),
 
48
      results_buff("", &my_charset_bin)
48
49
  {
49
50
  }
50
51
 
53
54
    return "memc_stats";
54
55
  }
55
56
 
56
 
  drizzled::String *val_str(drizzled::String *);
 
57
  String *val_str(String *);
57
58
 
58
59
  void fix_length_and_dec()
59
60
  {
63
64
private:
64
65
  void setFailureString(const char *error);
65
66
 
66
 
  drizzled::String failure_buff;
67
 
  drizzled::String results_buff;
 
67
  String failure_buff;
 
68
  String results_buff;
68
69
};
69
70
 
70
71
#endif /* PLUGIN_MEMCACHED_FUNCTIONS_MEMC_STATS_H */