26#ifndef ABSTRACT_STRING_OPTION_INCLUDED
27#define ABSTRACT_STRING_OPTION_INCLUDED
44template <
typename T_type>
63 std::string
name, std::string description);
73template <
typename T_type>
75 std::optional<std::string> *value, ulong var_type, std::string
name,
76 std::string description)
79 m_destination_value(value) {
80 *value = std::optional<std::string>();
85 std::placeholders::_1)));
88template <
typename T_type>
90 *this->m_destination_value = std::optional<std::string>(value);
91 this->m_original_value = this->m_destination_value->value().c_str();
92 this->m_option_structure.def_value =
93 (
uint64)this->m_destination_value->value().c_str();
94 return (T_type *)
this;
97template <
typename T_type>
99 if (argument !=
nullptr) {
101 *this->m_destination_value =
102 std::optional<std::string>(this->m_original_value);
uint64_t uint64
Definition: my_inttypes.h:69
constexpr pos_type Options
Definition: http_request.h:261
Definition: abstract_connection_program.h:38
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:339
case opt name
Definition: sslopt-case.h:33
#define NULL
Definition: types.h:55