diff options
author | Robin Gareus <robin@gareus.org> | 2015-07-05 17:12:30 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-07-05 17:12:30 +0200 |
commit | 8bd32dc4cec23e8e6e1dfc39050ea82e052bc647 (patch) | |
tree | 31de3d6956f108e97df9404cb130d2294490f52f /libs/ardour/enums.cc | |
parent | 4f81b17e8504ac39dea9460a2d4a10b147ec2801 (diff) |
prepare default meter-type config
Diffstat (limited to 'libs/ardour/enums.cc')
-rw-r--r-- | libs/ardour/enums.cc | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/enums.cc b/libs/ardour/enums.cc index 24b060ec28..8607b9f01f 100644 --- a/libs/ardour/enums.cc +++ b/libs/ardour/enums.cc @@ -1047,4 +1047,16 @@ std::ostream& operator<<(std::ostream& o, const AutoReturnTarget& var) return o << s; } - +std::istream& operator>>(std::istream& o, MeterType& var) +{ + std::string s; + o >> s; + var = (MeterType) string_2_enum (s, var); + return o; +} + +std::ostream& operator<<(std::ostream& o, const MeterType& var) +{ + std::string s = enum_2_string (var); + return o << s; +} |