5
* Copyright (C) 2010 DeNA Co.,Ltd.. All rights reserved.
6
* See COPYRIGHT.txt for details.
9
#ifndef DENA_CONFIG_HPP
10
#define DENA_CONFIG_HPP
15
#define DENA_VERBOSE(lv, x) if (dena::verbose_level >= (lv)) { (x); }
19
struct config : public std::map<std::string, std::string> {
20
std::string get_str(const std::string& key, const std::string& def = "")
22
long long get_int(const std::string& key, long long def = 0) const;
25
void parse_args(int argc, char **argv, config& conf);
27
extern unsigned int verbose_level;