aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-03-20 16:47:20 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-03-20 16:47:20 +0300
commite35a61d6f4a3d04d4a9a7db92d84ef705fad5f97 (patch)
tree7872881e8b39d256ada677e792a5286c25d50183
parentfe29b398c4b94a93bbfcd7e2a89cea74bdc340c0 (diff)
Regenerate options parsing files
-rw-r--r--odb/mysql/details/pregenerated/odb/mysql/details/options.cxx50
1 files changed, 50 insertions, 0 deletions
diff --git a/odb/mysql/details/pregenerated/odb/mysql/details/options.cxx b/odb/mysql/details/pregenerated/odb/mysql/details/options.cxx
index 207d6b6..1e15af6 100644
--- a/odb/mysql/details/pregenerated/odb/mysql/details/options.cxx
+++ b/odb/mysql/details/pregenerated/odb/mysql/details/options.cxx
@@ -682,6 +682,56 @@ namespace odb
}
};
+ template <typename K, typename V, typename C>
+ struct parser<std::multimap<K, V, C> >
+ {
+ static void
+ parse (std::multimap<K, V, C>& m, bool& xs, scanner& s)
+ {
+ const char* o (s.next ());
+
+ if (s.more ())
+ {
+ std::size_t pos (s.position ());
+ std::string ov (s.next ());
+ std::string::size_type p = ov.find ('=');
+
+ K k = K ();
+ V v = V ();
+ std::string kstr (ov, 0, p);
+ std::string vstr (ov, (p != std::string::npos ? p + 1 : ov.size ()));
+
+ int ac (2);
+ char* av[] =
+ {
+ const_cast<char*> (o),
+ 0
+ };
+
+ bool dummy;
+ if (!kstr.empty ())
+ {
+ av[1] = const_cast<char*> (kstr.c_str ());
+ argv_scanner s (0, ac, av, false, pos);
+ parser<K>::parse (k, dummy, s);
+ }
+
+ if (!vstr.empty ())
+ {
+ av[1] = const_cast<char*> (vstr.c_str ());
+ argv_scanner s (0, ac, av, false, pos);
+ parser<V>::parse (v, dummy, s);
+ }
+
+ m.insert (typename std::multimap<K, V, C>::value_type (k, v));
+ }
+ else
+ throw missing_value (o);
+
+ xs = true;
+ }
+ };
+
template <typename X, typename T, T X::*M>
void
thunk (X& x, scanner& s)