0.9.8.10
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Classes | Namespaces | Typedefs | Functions
Config.h File Reference

Configuration settings. More...

#include <Common/Logger.h>
#include <Common/Meta.h>
#include <Common/Properties.h>
#include <mutex>
Include dependency graph for Config.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Hypertable::Config::Policy
 Interface and base of config policy. More...
 
struct  Hypertable::Config::DefaultPolicy
 Default init policy. More...
 
struct  Hypertable::Config::Cons< CarT, CdrT >
 Helpers to compose init policies; allow to combine two policies into one. More...
 
struct  Hypertable::Config::NullPolicy
 
struct  Hypertable::Config::Cons< NullPolicy, PolicyT >
 
struct  Hypertable::Config::Join< PolicyListT >
 

Namespaces

 Hypertable
 Hypertable definitions
 
 Hypertable::Config
 

Typedefs

typedef PropertiesDesc Hypertable::Config::Desc
 

Functions

bool Hypertable::Config::has (const String &name)
 Check existence of a configuration value. More...
 
bool Hypertable::Config::defaulted (const String &name)
 Check if a configuration value is defaulted. More...
 
template<typename T >
Hypertable::Config::get (const String &name)
 Retrieves a configuration value. More...
 
template<typename T >
Hypertable::Config::get (const String &name, const T &default_value)
 Retrieves a configuration value (or a default value, if the value was not set) More...
 
Desc & Hypertable::Config::cmdline_desc (const char *usage=nullptr)
 A macro which definds global functions like get_bool(), get_str(), get_i16() etc. More...
 
void Hypertable::Config::cmdline_desc (const Desc &desc)
 Set the command line options description. More...
 
Desc & Hypertable::Config::cmdline_hidden_desc ()
 Get the command line hidden options description (for positional options) More...
 
PositionalDesc & Hypertable::Config::cmdline_positional_desc ()
 Get the command line positional options description. More...
 
Desc & Hypertable::Config::file_desc (const char *usage=NULL)
 Get the config file options description. More...
 
void Hypertable::Config::file_desc (const Desc &desc)
 Set the config file options description. More...
 
void Hypertable::Config::parse_args (int argc, char *argv[])
 Initialization helper; parses the argc/argv parameters into properties, reads the configuration file, handles "help" and "help-config" parameters. More...
 
void Hypertable::Config::parse_file (const String &fname, const Desc &desc)
 Parses a configuration file and stores all configuration options into the option descriptor. More...
 
void Hypertable::Config::alias (const String &cmdline_opt, const String &file_opt, bool overwrite=false)
 Setup command line option alias for config file option. More...
 
void Hypertable::Config::sync_aliases ()
 Sync alias values. More...
 
bool Hypertable::Config::allow_unregistered_options (bool choice)
 Toggle allow unregistered options. More...
 
bool Hypertable::Config::allow_unregistered_options ()
 Returns true if unregistered options are allowed. More...
 
void Hypertable::Config::cleanup ()
 Free all resources used. More...
 

Detailed Description

Configuration settings.

This file contains the global configuration settings (read from file or from a command line parameter).

Definition in file Config.h.