25#ifndef ABSTRACT_STRING_OPTION_INCLUDED
26#define ABSTRACT_STRING_OPTION_INCLUDED
43template <
typename T_type>
62 std::string
name, std::string description);
72template <
typename T_type>
74 std::optional<std::string> *value, ulong var_type, std::string
name,
75 std::string description)
78 m_destination_value(value) {
79 *value = std::optional<std::string>();
84 std::placeholders::_1)));
87template <
typename T_type>
89 *this->m_destination_value = std::optional<std::string>(value);
90 this->m_original_value = this->m_destination_value->value().c_str();
91 this->m_option_structure.def_value =
92 (
uint64)this->m_destination_value->value().c_str();
93 return (T_type *)
this;
96template <
typename T_type>
98 if (argument !=
nullptr) {
100 *this->m_destination_value =
101 std::optional<std::string>(this->m_original_value);
uint64_t uint64
Definition: my_inttypes.h:68
constexpr pos_type Options
Definition: http_request.h:260
Definition: abstract_connection_program.h:39
stdx::expected< void, error_type > bind(native_handle_type native_handle, const struct sockaddr *addr, size_t addr_len)
wrap bind() in a portable way.
Definition: socket.h:338
case opt name
Definition: sslopt-case.h:32
#define NULL
Definition: types.h:54