3 #include "telnetpp/core.hpp"
5 #include <boost/container/small_vector.hpp>
15 using string_value = telnetpp::byte_storage;
16 using array_value = boost::container::small_vector<string_value, 4>;
17 using table_value = std::vector<variable>;
24 using value_type = std::variant<string_value, array_value, table_value>;
41 variable(telnetpp::byte_storage name, string_value value);
46 variable(telnetpp::byte_storage name, array_value array_values);
51 variable(telnetpp::byte_storage name, table_value table_values);
53 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 bool operator!=(variable const &lhs, variable const &rhs)
Inequality operator.
Definition: variable.cpp:54
TELNETPP_EXPORT std::ostream & operator<<(std::ostream &out, variable const &var)
Stream Output operator.
Definition: variable.cpp:62
TELNETPP_EXPORT bool operator==(variable const &lhs, variable const &rhs)
Equality operator.
Definition: variable.cpp:46
A structure that represents a named value.
Definition: variable.hpp:32