3#include "telnetpp/core.hpp" 
   13using string_value = telnetpp::byte_storage;
 
   14using array_value = std::vector<string_value>;
 
   15using table_value = std::vector<variable>;
 
   22using value_type = std::variant<string_value, array_value, table_value>;
 
   39    constexpr variable(telnetpp::byte_storage name, string_value value)
 
   40      : name_{std::move(name)}, value_{std::move(value)}
 
 
   47    constexpr variable(telnetpp::byte_storage name, array_value array_values)
 
   48      : name_{std::move(name)}, value_{std::move(array_values)}
 
 
   55    constexpr variable(telnetpp::byte_storage name, table_value table_values)
 
   56      : name_{std::move(name)}, value_{std::move(table_values)}
 
 
   67    telnetpp::byte_storage name_;
 
 
A variant that can either be a string, an array of string, or an array of telnetpp::options::msdp::va...
An implementation of the Mud Server Data Protocol.
Definition client.hpp:6
TELNETPP_EXPORT std::ostream & operator<<(std::ostream &out, variable const &var)
Stream Output operator.
Definition variable.cpp:16
A structure that represents a named value.
Definition variable.hpp:30
constexpr variable(telnetpp::byte_storage name, array_value array_values)
Constructor.
Definition variable.hpp:47
constexpr variable()=default
Constructor.
constexpr variable(telnetpp::byte_storage name, table_value table_values)
Constructor.
Definition variable.hpp:55
TELNETPP_EXPORT constexpr friend bool operator==(variable const &lhs, variable const &rhs) noexcept=default
Equality operator.
constexpr variable(telnetpp::byte_storage name, string_value value)
Constructor.
Definition variable.hpp:39