26#ifndef MYSQL_HARNESS_DESIGNATOR_INCLUDED
27#define MYSQL_HARNESS_DESIGNATOR_INCLUDED
34#include "harness_export.h"
68 return (lhs < rhs) || (lhs == rhs);
76 return (lhs > rhs) || (lhs == rhs);
88 std::string
str()
const {
124 static const char *
const name[] = {
125 "<<",
"<=",
"==",
"!=",
">=",
">>",
127 for (
auto item : con) out <<
name[item.first] << item.second;
132 bool version_good(
const Version &ver)
const;
140 [[noreturn]]
void parse_error(
const std::string &prefix)
const;
149 void parse_version_list();
153 std::string::const_iterator
cur_;
Definition: designator.h:122
friend std::ostream & operator<<(std::ostream &out, const Constraint &con)
Definition: designator.h:123
Designator grammar.
Definition: designator.h:108
void trace(const std::string &where) const
const std::string & input_
Definition: designator.h:152
std::string plugin
Definition: designator.h:134
std::string::const_iterator cur_
Definition: designator.h:153
Constraint constraint
Definition: designator.h:135
Relation
Definition: designator.h:112
@ GREATER_EQUAL
Definition: designator.h:117
@ LESS_THEN
Definition: designator.h:113
@ EQUAL
Definition: designator.h:115
@ NOT_EQUAL
Definition: designator.h:116
@ LESS_EQUAL
Definition: designator.h:114
Class representing a version.
Definition: designator.h:45
Version(int x, int y, int z=0)
Definition: designator.h:79
long ver_minor
Definition: designator.h:95
friend bool operator!=(const Version &lhs, const Version &rhs)
Definition: designator.h:63
long ver_major
Definition: designator.h:94
Version(unsigned long ver)
Definition: designator.h:83
std::string str() const
Definition: designator.h:88
long ver_patch
Definition: designator.h:96
friend bool operator>(const Version &lhs, const Version &rhs)
Definition: designator.h:71
friend bool operator>=(const Version &lhs, const Version &rhs)
Definition: designator.h:75
friend bool operator==(const Version &lhs, const Version &rhs)
Definition: designator.h:58
friend bool operator<=(const Version &lhs, const Version &rhs)
Definition: designator.h:67
Version()
Definition: designator.h:81
friend std::ostream & operator<<(std::ostream &out, const Version &ver)
Definition: designator.h:47
friend bool operator<(const Version &lhs, const Version &rhs)
Definition: designator.h:52
static char * where
Definition: mysqldump.cc:152
uint16_t value_type
Definition: vt100.h:184
std::string str(const mysqlrouter::ConfigGenerator::Options::Endpoint &ep)
Definition: config_generator.cc:1105
mutable_buffer buffer(void *p, size_t n) noexcept
Definition: buffer.h:418
std::basic_ostringstream< char, std::char_traits< char >, ut::allocator< char > > ostringstream
Specialization of basic_ostringstream which uses ut::allocator.
Definition: ut0new.h:2872
std::vector< T, ut::allocator< T > > vector
Specialization of vector which uses allocator.
Definition: ut0new.h:2876
case opt name
Definition: sslopt-case.h:29