SNode.C
Loading...
Searching...
No Matches
ConfigAddress.cpp
Go to the documentation of this file.
1/*
2 * SNode.C - a slim toolkit for network communication
3 * Copyright (C) Volker Christian <me@vchrist.at>
4 * 2020, 2021, 2022, 2023, 2024, 2025
5 *
6 * This program is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU Lesser General Public License as published
8 * by the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#include "net/rc/config/ConfigAddress.h"
21
22#include "net/config/ConfigAddressBase.hpp" // IWYU pragma: keep
23#include "net/config/ConfigAddressLocal.hpp" // IWYU pragma: keep
24#include "net/config/ConfigAddressRemote.hpp" // IWYU pragma: keep
25#include "net/config/ConfigAddressReverse.hpp" // IWYU pragma: keep
26#include "net/config/ConfigSection.hpp"
27
28#ifndef DOXYGEN_SHOULD_SKIP_THIS
29
30#include "utils/PreserveErrno.h"
31
32#endif /* DOXYGEN_SHOULD_SKIP_THIS */
33
34namespace net::rc::config {
35
36 template <template <typename SocketAddress> typename ConfigAddressType>
42 "--host",
43 "Bluetooth address",
44 "xx:xx:xx:xx:xx:xx",
45 "00:00:00:00:00:00",
48 "--channel",
49 "Channel number",
50 "channel");
51 }
52
53 template <template <typename SocketAddress> typename ConfigAddressType>
61 template <template <typename SocketAddress> typename ConfigAddressType>
66 return *this;
67 }
69 template <template <typename SocketAddress> typename ConfigAddressType>
72
75 ->clear();
78 return *this;
79 }
80
81 template <template <typename SocketAddress> typename ConfigAddressType>
85
86 template <template <typename SocketAddress> typename ConfigAddressType>
97
98 template <template <typename SocketAddress> typename ConfigAddressType>
102
103 template <template <typename SocketAddress> typename ConfigAddressType>
109
110 template <template <typename SocketAddress> typename ConfigAddressType>
116
117} // namespace net::rc::config
118
119template class net::config::ConfigAddress<net::rc::SocketAddress>;
120template class net::config::ConfigAddressLocal<net::rc::SocketAddress>;
121template class net::config::ConfigAddressRemote<net::rc::SocketAddress>;
122template class net::config::ConfigAddressReverse<net::rc::SocketAddress>;
123template class net::config::ConfigAddressBase<net::rc::SocketAddress>;
124template class net::rc::config::ConfigAddress<net::config::ConfigAddressLocal>;
125template class net::rc::config::ConfigAddress<net::config::ConfigAddressRemote>;
126template class net::rc::config::ConfigAddressReverse<net::config::ConfigAddressReverse>;