2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
42#ifndef NET_L2_CONFIG_CONFIGADDRESS_H
43#define NET_L2_CONFIG_CONFIGADDRESS_H
45#include "net/config/ConfigAddressLocal.h"
46#include "net/config/ConfigAddressRemote.h"
47#include "net/config/ConfigAddressReverse.h"
48#include "net/l2/SocketAddress.h"
50namespace net::config {
54#ifndef DOXYGEN_SHOULD_SKIP_THIS
67 template <
template <
typename SocketAddressT>
typename ConfigAddressTypeT>
70 using Super = ConfigAddressTypeT<SocketAddress>;
76 template <
template <
typename SocketAddressT>
typename ConfigAddressTypeT>
77 class ConfigAddress :
public ConfigAddressTypeT<net::l2::SocketAddress> {
79 using Super = ConfigAddressTypeT<net::l2::SocketAddress>;
83 const std::string& addressOptionName,
84 const std::string& addressOptionDescription);
87 SocketAddress*
init()
final;
SocketAddress(const std::string &btAddress, uint16_t psm)
std::string getBtAddress() const
ConfigAddress & setPsm(uint16_t psm)
ConfigAddress & setSocketAddress(const SocketAddress &socketAddress)
ConfigAddress & setBtAddress(const std::string &btAddress)
CLI::Option * btAddressOpt
ConfigAddress & setPsmRequired(bool required=true)
std::string getBtAddress() const
ConfigAddress & setBtAddressRequired(bool required=true)
SocketAddress * init() final
ConfigAddress(net::config::ConfigInstance *instance, const std::string &addressOptionName, const std::string &addressOptionDescription)