~percona-dev/percona-server/5.1-kill_idle_transaction-innodb_fake_changes

« back to all changes in this revision

Viewing changes to HandlerSocket-Plugin-for-MySQL/libhsclient/config.hpp

  • Committer: Aleksandr Kuzminsky
  • Date: 2010-11-24 08:58:24 UTC
  • mto: This revision was merged to the branch mainline in revision 155.
  • Revision ID: aleksandr.kuzminsky@percona.com-20101124085824-9742ytdt2x50djw3
Added HandlerSocket-Plugin-for-MySQL sources

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// vim:sw=2:ai
 
3
 
 
4
/*
 
5
 * Copyright (C) 2010 DeNA Co.,Ltd.. All rights reserved.
 
6
 * See COPYRIGHT.txt for details.
 
7
 */
 
8
 
 
9
#ifndef DENA_CONFIG_HPP
 
10
#define DENA_CONFIG_HPP
 
11
 
 
12
#include <string>
 
13
#include <map>
 
14
 
 
15
#define DENA_VERBOSE(lv, x) if (dena::verbose_level >= (lv)) { (x); }
 
16
 
 
17
namespace dena {
 
18
 
 
19
struct config : public std::map<std::string, std::string> {
 
20
  std::string get_str(const std::string& key, const std::string& def = "")
 
21
    const;
 
22
  long long get_int(const std::string& key, long long def = 0) const;
 
23
};
 
24
 
 
25
void parse_args(int argc, char **argv, config& conf);
 
26
 
 
27
extern unsigned int verbose_level;
 
28
 
 
29
};
 
30
 
 
31
#endif
 
32