diff options
author | Constantin Michael <constantin@codesynthesis.com> | 2011-10-06 08:58:43 +0200 |
---|---|---|
committer | Constantin Michael <constantin@codesynthesis.com> | 2011-10-21 11:47:12 +0200 |
commit | 3d1aa62e7f6dfeba4b81ea4716598fe680f1fffb (patch) | |
tree | 269833f53585612e72ba1facc0b4b997ddd936dc /odb/option-types.hxx | |
parent | 03fbd42bd45c30875f1a5c3c52062550e4a8a7f9 (diff) |
Add --oracle-client-version option and its associated C++ type oracle_version
Diffstat (limited to 'odb/option-types.hxx')
-rw-r--r-- | odb/option-types.hxx | 30 |
1 files changed, 30 insertions, 0 deletions
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 |