52 template <
class PolicyT>
57 std::lock_guard<std::recursive_mutex> lock(
rec_mutex);
63 PolicyT::init_options();
68 if (get_bool(
"verbose"))
72 PolicyT::on_init_error(e);
83 template <
class PolicyListT>
86 init_with_policy<Combined>(argc, argv, desc);
95 inline void init(
int argc,
char *argv[],
const Desc *desc = NULL) {
96 init_with_policy<DefaultPolicy>(argc, argv, desc);
Retrieves system information (hardware, installation directory, etc)
PropertiesPtr properties
This singleton map stores all options.
void init(int argc, char *argv[], const Desc *desc=NULL)
Initialize with default policy.
static void initialize(const String &install_directory=String())
Initializes the static class members; checks header version vs.
Desc & cmdline_desc(const char *usage)
A macro which definds global functions like get_bool(), get_str(), get_i16() etc. ...
void init_with_policies(int argc, char *argv[], const Desc *desc=0)
Convenience function (more of a demo) to init with a list of polices.
void parse_args(int argc, char *argv[])
Initialization helper; parses the argc/argv parameters into properties, reads the configuration file...
void sync_aliases()
Sync alias values.
std::recursive_mutex rec_mutex
A global (recursive) configuration mutex.
This is a generic exception class for Hypertable.
Meta::fold< PolicyListT, NullPolicy, Cons< Meta::_1, Meta::_2 > >::type type
void init_with_policy(int argc, char *argv[], const Desc *desc=0)
Init with policy (with init_options (called before parse_args) and init (called after parse_args) met...