53 return args_[0].empty();
59 operator const std::string&()
const
67 const std::string&
cmd()
const
77 return args_.size() - 1;
Represents a server control line written to a communication socket.
std::vector< std::string > args_
const std::string & cmd() const
Returns the control command.
control_line(const std::string &str)
Parses a control line string.
std::string full() const
Return the full command line string.
const std::string & operator[](std::size_t n) const
Returns the nth argument.
bool empty() const
Whether the control line is empty.
std::size_t args_count() const
Returns the total number of arguments, not including the command itself.
std::string join(const T &v, const std::string &s=",")
Generates a new string joining container items in a list.
std::vector< std::string > split(const config_attribute_value &val)
static map_location::direction n