Flow 1.0.1
Flow project: Public API.
Classes | Namespaces | Functions
cfg_manager.hpp File Reference

Classes

struct  flow::cfg::Final_validator_func< Value_set >
 Utility/traits type to concisely work with final-validation functions when calling methods like Config_manager::apply_static(). More...
 
struct  flow::cfg::Null_value_set
 Empty struct suitable as a *_value_set template arg for Config_manager, when a slot requires a Value_set, but you have no config to actually parse there. More...
 
class  flow::cfg::Config_manager< S_d_value_set >
 Manages a config setup, intended for a single daemon process, by maintaining 1 or more set(s) of static config and dynamic config, each, via that number of Option_set<>-ready raw value struct types supplied by the user as template arguments. More...
 
struct  flow::cfg::Config_manager< S_d_value_set >::On_dynamic_change_func_handle
 Opaque handle for managing a dynamic config change callback. More...
 

Namespaces

namespace  flow
 Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel.
 
namespace  flow::cfg
 Flow module that facilitates configuring modules, such as applications and APIs, via statically and/or dynamically parsed sets of name/value pairs from config sources like files and command lines.
 

Functions

Final_validator_func< Null_value_set >::Type flow::cfg::null_final_validator_func ()
 Returns a value usable as final_validator_func arg to Config_manager::apply_static() and others – for a Null_value_set value set. More...
 
Option_set< Null_value_set >::Declare_options_func flow::cfg::null_declare_opts_func ()
 Returns a value usable as declare_opts_func_moved Config_manager ctor arg for a Null_value_set value set. More...
 
template<typename... S_d_value_set>
std::ostream & flow::cfg::operator<< (std::ostream &os, const Config_manager< S_d_value_set... > &val)
 Serializes (briefly) a Config_manager to a standard output stream. More...