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

Configuration settings. More...

#include <Common/Compat.h>
#include <Common/Version.h>
#include <Common/Logger.h>
#include <Common/String.h>
#include <Common/Path.h>
#include <Common/FileUtils.h>
#include <Common/Config.h>
#include <Common/SystemInfo.h>
#include <fstream>
#include <iostream>
#include <mutex>
#include <errno.h>
Include dependency graph for Config.cc:

Go to the source code of this file.

Namespaces

 Hypertable
 Hypertable definitions
 
 Hypertable::Config
 

Functions

static int Hypertable::Config::terminal_line_length ()
 
static String Hypertable::Config::usage_str (const char *usage)
 
Desc & Hypertable::Config::cmdline_desc (const char *usage=nullptr)
 A macro which definds global functions like get_bool(), get_str(), get_i16() etc. 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...
 
void Hypertable::Config::cmdline_desc (const Desc &desc)
 Set the command line 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...
 

Variables

std::recursive_mutex Hypertable::Config::rec_mutex
 A global (recursive) configuration mutex. More...
 
PropertiesPtr Hypertable::Config::properties
 This singleton map stores all options. More...
 
static String Hypertable::Config::filename
 
static bool Hypertable::Config::file_loaded = false
 
static bool Hypertable::Config::allow_unregistered = false
 
static Desc * Hypertable::Config::cmdline_descp = NULL
 
static Desc * Hypertable::Config::cmdline_hidden_descp = NULL
 
static PositionalDesc * Hypertable::Config::cmdline_positional_descp = NULL
 
static Desc * Hypertable::Config::file_descp = NULL
 

Detailed Description

Configuration settings.

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

Definition in file Config.cc.