mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-15 19:16:40 +01:00
Remove now unused stream operator functions in ardour/types.h
This commit is contained in:
parent
2b58bbd50a
commit
8f516a2c4f
2 changed files with 0 additions and 467 deletions
|
|
@ -732,74 +732,6 @@ namespace ARDOUR {
|
|||
|
||||
} // namespace ARDOUR
|
||||
|
||||
|
||||
/* these cover types declared above in this header. See enums.cc
|
||||
for the definitions.
|
||||
*/
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::SampleFormat& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::HeaderFormat& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::AutoConnectOption& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::TracksAutoNamingRule& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::EditMode& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::MonitorModel& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::MonitorChoice& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::PFLPosition& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::AFLPosition& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::ListenPosition& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::LayerModel& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::InsertMergePolicy& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::SyncSource& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::ShuttleBehaviour& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::ShuttleUnits& sf);
|
||||
std::istream& operator>>(std::istream& o, Timecode::TimecodeFormat& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::DenormalModel& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::PositionLockStyle& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::FadeShape& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::RegionSelectionAfterSplit& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::BufferingPreset& var);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::AutoReturnTarget& sf);
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::MeterType& sf);
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::SampleFormat& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::HeaderFormat& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::AutoConnectOption& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::TracksAutoNamingRule& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::EditMode& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::MonitorModel& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::MonitorChoice& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::PFLPosition& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::AFLPosition& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::ListenPosition& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::LayerModel& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::InsertMergePolicy& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::SyncSource& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::ShuttleBehaviour& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::ShuttleUnits& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const Timecode::TimecodeFormat& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::DenormalModel& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::PositionLockStyle& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::FadeShape& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::RegionSelectionAfterSplit& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::BufferingPreset& var);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::AutoReturnTarget& sf);
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::MeterType& sf);
|
||||
|
||||
/* because these operators work on types which can be used when making
|
||||
a UI_CONFIG_VARIABLE (in gtk2_ardour) we need them to be exported.
|
||||
*/
|
||||
LIBARDOUR_API std::istream& operator>>(std::istream& o, ARDOUR::WaveformScale& sf);
|
||||
LIBARDOUR_API std::istream& operator>>(std::istream& o, ARDOUR::WaveformShape& sf);
|
||||
LIBARDOUR_API std::istream& operator>>(std::istream& o, ARDOUR::VUMeterStandard& sf);
|
||||
LIBARDOUR_API std::istream& operator>>(std::istream& o, ARDOUR::MeterLineUp& sf);
|
||||
LIBARDOUR_API std::istream& operator>>(std::istream& o, ARDOUR::LocaleMode& sf);
|
||||
|
||||
LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::WaveformScale& sf);
|
||||
LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::WaveformShape& sf);
|
||||
LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::VUMeterStandard& sf);
|
||||
LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::MeterLineUp& sf);
|
||||
LIBARDOUR_API std::ostream& operator<<(std::ostream& o, const ARDOUR::LocaleMode& sf);
|
||||
|
||||
|
||||
static inline ARDOUR::framepos_t
|
||||
session_frame_to_track_frame (ARDOUR::framepos_t session_frame, double speed)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -774,402 +774,3 @@ setup_enum_writer ()
|
|||
}
|
||||
|
||||
} /* namespace ARDOUR */
|
||||
|
||||
/* deserializing types from ardour/types.h */
|
||||
|
||||
std::istream& operator>>(std::istream& o, HeaderFormat& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (HeaderFormat) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const HeaderFormat& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, SampleFormat& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (SampleFormat) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const SampleFormat& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, AutoConnectOption& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (AutoConnectOption) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const AutoConnectOption& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, TracksAutoNamingRule& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (TracksAutoNamingRule) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const TracksAutoNamingRule& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, MonitorChoice& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (MonitorChoice) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const MonitorChoice& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, MonitorModel& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (MonitorModel) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const MonitorModel& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, VUMeterStandard& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (VUMeterStandard) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const VUMeterStandard& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, MeterLineUp& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (MeterLineUp) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const MeterLineUp& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, LocaleMode& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (LocaleMode) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const LocaleMode& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, PFLPosition& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (PFLPosition) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const PFLPosition& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, AFLPosition& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (AFLPosition) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const AFLPosition& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, EditMode& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (EditMode) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const EditMode& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, ListenPosition& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (ListenPosition) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const ListenPosition& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, LayerModel& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (LayerModel) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const LayerModel& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, InsertMergePolicy& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (InsertMergePolicy) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
std::ostream& operator<<(std::ostream& o, const InsertMergePolicy& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, SyncSource& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (SyncSource) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const SyncSource& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, ShuttleBehaviour& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (ShuttleBehaviour) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const ShuttleBehaviour& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, ShuttleUnits& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (ShuttleUnits) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const ShuttleUnits& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, TimecodeFormat& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (TimecodeFormat) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const TimecodeFormat& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, DenormalModel& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (DenormalModel) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const DenormalModel& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, WaveformScale& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (WaveformScale) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const WaveformScale& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
std::istream& operator>>(std::istream& o, WaveformShape& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (WaveformShape) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const WaveformShape& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, PositionLockStyle& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (PositionLockStyle) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const PositionLockStyle& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, Evoral::OverlapType& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (Evoral::OverlapType) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const Evoral::OverlapType& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, FadeShape& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (FadeShape) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const FadeShape& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, RegionSelectionAfterSplit& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (RegionSelectionAfterSplit) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const RegionSelectionAfterSplit& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, ARDOUR::BufferingPreset& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (ARDOUR::BufferingPreset) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const ARDOUR::BufferingPreset& var)
|
||||
{
|
||||
std::string s = enum_2_string (var);
|
||||
return o << s;
|
||||
}
|
||||
|
||||
std::istream& operator>>(std::istream& o, AutoReturnTarget& var)
|
||||
{
|
||||
std::string s;
|
||||
o >> s;
|
||||
var = (AutoReturnTarget) string_2_enum (s, var);
|
||||
return o;
|
||||
}
|
||||
|
||||
std::ostream& operator<<(std::ostream& o, const AutoReturnTarget& var)
|
||||
{
|
||||
std::string s = enum_2_string (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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue