aboutsummaryrefslogtreecommitdiff
path: root/odb/option-types.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'odb/option-types.cxx')
-rw-r--r--odb/option-types.cxx23
1 files changed, 23 insertions, 0 deletions
diff --git a/odb/option-types.cxx b/odb/option-types.cxx
index 8efb061..60fea73 100644
--- a/odb/option-types.cxx
+++ b/odb/option-types.cxx
@@ -195,6 +195,29 @@ operator<< (ostream& os, schema_format sf)
}
//
+// name_case
+//
+
+istream&
+operator>> (istream& is, name_case& v)
+{
+ string s;
+ is >> s;
+
+ if (!is.fail ())
+ {
+ if (s == "upper")
+ v = name_case::upper;
+ else if (s == "lower")
+ v = name_case::lower;
+ else
+ is.setstate (istream::failbit);
+ }
+
+ return is;
+}
+
+//
// oracle_version
//