networkservice
Public Attributes | List of all members
service::NetworkService::NetworkServiceParams Struct Reference

A data structure containing all input parameters expected by the construtor. More...

#include <NetworkService.h>

Collaboration diagram for service::NetworkService::NetworkServiceParams:
Collaboration graph
[legend]

Public Attributes

const plugins::logger::ILoggerlogger
 
const plugins::config::IConfigconfig
 
const plugins::network::INetworknetwork
 
const plugins::firewall::IRuleFactoryruleFactory
 

Detailed Description

A data structure containing all input parameters expected by the construtor.

One reason that explains why a structure is preferred over a long list of input parameters (>=4) is that this way it is easier to add new parameters without impacting the readability.

Member Data Documentation

◆ config

const plugins::config::IConfig& service::NetworkService::NetworkServiceParams::config

An object to use the config plugin

◆ logger

const plugins::logger::ILogger& service::NetworkService::NetworkServiceParams::logger

An object to use the logger plugin

◆ network

const plugins::network::INetwork& service::NetworkService::NetworkServiceParams::network

An object to use the network plugin

◆ ruleFactory

const plugins::firewall::IRuleFactory& service::NetworkService::NetworkServiceParams::ruleFactory

An object to use the firewall plugin


The documentation for this struct was generated from the following file: