|
using | hook_factory = std::function< io::hook *(actor_system &)> |
|
using | hook_factory_vector = std::vector< hook_factory > |
|
using | thread_hooks = std::vector< std::unique_ptr< thread_hook > > |
|
template<class K , class V > |
using | hash_map = std::unordered_map< K, V > |
|
using | module_factory = std::function< actor_system::module *(actor_system &)> |
|
using | module_factory_vector = std::vector< module_factory > |
|
using | actor_factory_map = hash_map< std::string, actor_factory > |
|
using | portable_name_map = hash_map< std::type_index, std::string > |
|
using | group_module_factory = std::function< group_module *()> |
|
using | group_module_factory_vector = std::vector< group_module_factory > |
|
using | config_map = dictionary< config_value::dictionary > |
|
using | string_list = std::vector< std::string > |
|
using | opt_group = config_option_adder |
|
|
| actor_system_config (actor_system_config &&)=default |
|
| actor_system_config (const actor_system_config &)=delete |
|
actor_system_config & | operator= (const actor_system_config &)=delete |
|
virtual settings | dump_content () const |
| Extracts all parameters from the config, including entries with default values.
|
|
template<class T > |
actor_system_config & | set (std::string_view name, T &&value) |
| Sets a config by using its name config_name to config_value .
|
|
error | parse (string_list args, std::istream &config) |
| Parses args as tuple of strings containing CLI options and config as configuration file.
|
|
error | parse (string_list args) |
| Parses args as CLI options and tries to locate a config file via config_file_path and config_file_path_alternative unless the user provides a config file path on the command line.
|
|
error | parse (int argc, char **argv, std::istream &config) |
| Parses the CLI options {argc, argv} and config as configuration file.
|
|
error | parse (int argc, char **argv) |
| Parses the CLI options {argc, argv} and tries to locate a config file via config_file_path and config_file_path_alternative unless the user provides a config file path on the command line.
|
|
actor_system_config & | add_actor_factory (std::string name, actor_factory fun) |
| Allows other nodes to spawn actors created by fun dynamically by using name as identifier.
|
|
template<class T , class... Ts> |
actor_system_config & | add_actor_type (std::string name) |
| Allows other nodes to spawn actors of type T dynamically by using name as identifier.
|
|
template<class F > |
actor_system_config & | add_actor_type (std::string name, F f) |
| Allows other nodes to spawn actors implemented by function f dynamically by using name as identifier.
|
|
template<class T , class... Ts> |
actor_system_config & | load () |
| Loads module T with optional template parameters Ts... .
|
|
template<class Factory > |
actor_system_config & | add_hook_factory (Factory f) |
| Adds a factory for a new hook type to the middleman (if loaded).
|
|
template<class Hook > |
actor_system_config & | add_hook_type () |
| Adds a hook type to the middleman (if loaded).
|
|
template<class Hook , class... Ts> |
actor_system_config & | add_thread_hook (Ts &&... ts) |
| Adds a hook type to the scheduler.
|
|
std::pair< int, char ** > | c_args_remainder () const noexcept |
| Returns the remainder including the program name (argv[0] ) suitable for passing the returned pair of arguments to C-style functions that usually accept (argc, argv) input as passed to main .
|
|
|
bool | cli_helptext_printed |
| Stores whether the help text was printed.
|
|
std::string | program_name |
| Stores the content of argv[0] from the arguments passed to parse .
|
|
string_list | remainder |
| Stores CLI arguments that were not consumed by CAF.
|
|
bool | slave_mode |
| Stores whether this node was started in slave mode.
|
|
std::string | slave_name |
| Name of this node when started in slave mode.
|
|
std::string | bootstrap_node |
| Credentials for connecting to the bootstrap node.
|
|
std::string | openssl_certificate |
|
std::string | openssl_key |
|
std::string | openssl_passphrase |
|
std::string | openssl_capath |
|
std::string | openssl_cafile |
|
actor_factory_map | actor_factories |
|
module_factory_vector | module_factories |
|
hook_factory_vector | hook_factories |
|
group_module_factory_vector | group_module_factories |
|
thread_hooks | thread_hooks_ |
|
actor_profiler * | profiler = nullptr |
| Provides system-wide callbacks for several actor operations.
|
|
tracing_data_factory * | tracing_context = nullptr |
| Enables CAF to deserialize application-specific tracing information.
|
|
std::string | config_file_path |
| Configures the default path of the configuration file.
|
|
std::vector< std::string > | config_file_path_alternatives |
| Configures alternative paths for locating a config file when unable to open the default config_file_path .
|
|
int(* | slave_mode_fun )(actor_system &, const actor_system_config &) |
|
|
(Note that these are not member symbols.)
|
template<class T > |
bool | holds_alternative (const actor_system_config &cfg, std::string_view name) |
| Returns whether xs associates a value of type T to name .
|
|
template<class T > |
auto | get_if (const actor_system_config *cfg, std::string_view name) |
| Tries to retrieve the value associated to name from cfg .
|
|
template<class T > |
T | get (const actor_system_config &cfg, std::string_view name) |
| Retrieves the value associated to name from cfg .
|
|
template<class To = get_or_auto_deduce, class Fallback > |
auto | get_or (const actor_system_config &cfg, std::string_view name, Fallback &&fallback) |
| Retrieves the value associated to name from cfg or returns fallback .
|
|
template<class T > |
expected< T > | get_as (const actor_system_config &cfg, std::string_view name) |
| Tries to retrieve the value associated to name from cfg as an instance of type T .
|
|
CAF_CORE_EXPORT const settings & | content (const actor_system_config &) |
|
template<class T > |
T | get (const settings &xs, std::string_view name) |
| Retrieves the value associated to name from xs .
|
|
template<class To = get_or_auto_deduce, class Fallback > |
auto | get_or (const settings &xs, std::string_view name, Fallback &&fallback) |
| Retrieves the value associated to name from xs or returns fallback .
|
|
template<class T > |
expected< T > | get_as (const settings &xs, std::string_view name) |
| Tries to retrieve the value associated to name from xs as an instance of type T .
|
|
Configures an actor_system
on startup.