#include <options.hpp>
Public Member Functions | |
| command_line (int argc, char **argv) | |
| Reads the command line. More... | |
| const std::string & | help_text () const |
| Retrieves the –help text. More... | |
Public Attributes | |
| bool | help |
| True if –help was passed. More... | |
| bool | version |
| True if –version was passed. More... | |
| utils::optional< std::string > | config_file |
| Path to the add-ons server configuration file. More... | |
| utils::optional< std::string > | server_dir |
| Path to the add-ons server storage dir. More... | |
| utils::optional< unsigned short > | port |
| Port number on which the server will listen for incoming connections. More... | |
| bool | show_log_domains |
| True if –logdomains was passed. More... | |
| std::map< std::string, lg::severity > | log_domain_levels |
| Log domain/severity configuration. More... | |
| bool | log_precise_timestamps |
| Whether to use higher precision for log timestamps. More... | |
| bool | report_timings |
| Whether to report timing information for server requests. More... | |
Private Member Functions | |
| command_line (const std::vector< std::string > &args) | |
| void | parse_log_domains (const std::string &domains_string, int severity) |
Private Attributes | |
| std::string | argv0_ |
| std::vector< std::string > | args_ |
| std::string | help_text_ |
Definition at line 31 of file options.hpp.
| campaignd::command_line::command_line | ( | int | argc, |
| char ** | argv | ||
| ) |
Reads the command line.
Definition at line 31 of file options.cpp.
|
private |
Definition at line 36 of file options.cpp.
References args_, argv0_, config_file, d, lg::debug(), lg::domains, lg::err(), lg::logger::get_severity(), help_text_, lg::info(), lg::LG_NONE, log_domain_levels, log_precise_timestamps, port, report_timings, server_dir, show_log_domains, utils::split(), version, and lg::warn().
|
inline |
Retrieves the –help text.
Definition at line 45 of file options.hpp.
References help_text_.
|
private |
|
private |
Definition at line 73 of file options.hpp.
Referenced by command_line().
|
private |
Definition at line 72 of file options.hpp.
Referenced by command_line().
| utils::optional<std::string> campaignd::command_line::config_file |
Path to the add-ons server configuration file.
Definition at line 56 of file options.hpp.
Referenced by command_line().
| bool campaignd::command_line::help |
True if –help was passed.
Definition at line 51 of file options.hpp.
|
private |
Definition at line 74 of file options.hpp.
Referenced by command_line(), and help_text().
| std::map<std::string, lg::severity> campaignd::command_line::log_domain_levels |
Log domain/severity configuration.
Definition at line 65 of file options.hpp.
Referenced by command_line().
| bool campaignd::command_line::log_precise_timestamps |
Whether to use higher precision for log timestamps.
Definition at line 67 of file options.hpp.
Referenced by command_line().
| utils::optional<unsigned short> campaignd::command_line::port |
Port number on which the server will listen for incoming connections.
Definition at line 60 of file options.hpp.
Referenced by command_line().
| bool campaignd::command_line::report_timings |
Whether to report timing information for server requests.
Definition at line 69 of file options.hpp.
Referenced by command_line().
| utils::optional<std::string> campaignd::command_line::server_dir |
Path to the add-ons server storage dir.
Definition at line 58 of file options.hpp.
Referenced by command_line().
| bool campaignd::command_line::show_log_domains |
True if –logdomains was passed.
Definition at line 63 of file options.hpp.
Referenced by command_line().
| bool campaignd::command_line::version |
True if –version was passed.
Definition at line 53 of file options.hpp.
Referenced by command_line().