From 3d1aa62e7f6dfeba4b81ea4716598fe680f1fffb Mon Sep 17 00:00:00 2001 From: Constantin Michael Date: Thu, 6 Oct 2011 08:58:43 +0200 Subject: Add --oracle-client-version option and its associated C++ type oracle_version --- odb/option-types.hxx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'odb/option-types.hxx') diff --git a/odb/option-types.hxx b/odb/option-types.hxx index 966f5cf..642c149 100644 --- a/odb/option-types.hxx +++ b/odb/option-types.hxx @@ -65,4 +65,34 @@ operator>> (std::istream&, schema_format&); std::ostream& operator<< (std::ostream&, schema_format); +// +// +struct oracle_version +{ + unsigned short + ver_major () const + { + return major_; + } + + unsigned short + ver_minor () const + { + return minor_; + } + + friend std::istream& operator>> (std::istream&, oracle_version&); + friend std::ostream& operator<< (std::ostream&, oracle_version); + +private: + unsigned short major_; + unsigned short minor_; +}; + +std::istream& +operator>> (std::istream&, oracle_version&); + +std::ostream& +operator<< (std::ostream&, oracle_version); + #endif // ODB_OPTION_TYPES_HXX -- cgit v1.1