13
0
livetrax/libs/ardour/enums.cc
Carl Hetherington b9dca83832 Auto-connect outputs that appear as a result of e.g. instruments being added to MIDI tracks. Fixes #3368.
git-svn-id: svn://localhost/ardour2/branches/3.0@7720 d708f5d6-7413-0410-9779-e7cbd77b26cf
2010-08-30 22:34:21 +00:00

794 lines
23 KiB
C++

/*
Copyright (C) 2000-2007 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "pbd/enumwriter.h"
#include "midi++/types.h"
#include "ardour/audiofilesource.h"
#include "ardour/audioregion.h"
#include "ardour/delivery.h"
#include "ardour/diskstream.h"
#include "ardour/export_filename.h"
#include "ardour/export_format_base.h"
#include "ardour/export_profile_manager.h"
#include "ardour/io.h"
#include "ardour/location.h"
#include "ardour/midi_model.h"
#include "ardour/midi_track.h"
#include "ardour/mute_master.h"
#include "ardour/panner.h"
#include "ardour/route_group.h"
#include "ardour/session.h"
#include "ardour/track.h"
#include "ardour/types.h"
using namespace std;
using namespace PBD;
using namespace ARDOUR;
using namespace MIDI;
namespace ARDOUR {
void
setup_enum_writer ()
{
EnumWriter& enum_writer (EnumWriter::instance());
vector<int> i;
vector<string> s;
OverlapType _OverlapType;
AlignStyle _AlignStyle;
MeterPoint _MeterPoint;
TrackMode _TrackMode;
NoteMode _NoteMode;
ChannelMode _ChannelMode;
ColorMode _ColorMode;
MeterFalloff _MeterFalloff;
MeterHold _MeterHold;
EditMode _EditMode;
RegionPoint _RegionPoint;
Placement _Placement;
MonitorModel _MonitorModel;
RemoteModel _RemoteModel;
DenormalModel _DenormalModel;
CrossfadeModel _CrossfadeModel;
LayerModel _LayerModel;
InsertMergePolicy _InsertMergePolicy;
ListenPosition _ListenPosition;
SampleFormat _SampleFormat;
CDMarkerFormat _CDMarkerFormat;
HeaderFormat _HeaderFormat;
PluginType _PluginType;
SyncSource _SyncSource;
ShuttleBehaviour _ShuttleBehaviour;
ShuttleUnits _ShuttleUnits;
Session::RecordState _Session_RecordState;
SessionEvent::Type _SessionEvent_Type;
TimecodeFormat _Session_TimecodeFormat;
Session::PullupFormat _Session_PullupFormat;
AudioRegion::FadeShape _AudioRegion_FadeShape;
Panner::LinkDirection _Panner_LinkDirection;
IOChange _IOChange;
AutomationType _AutomationType;
AutoState _AutoState;
AutoStyle _AutoStyle;
AutoConnectOption _AutoConnectOption;
Session::StateOfTheState _Session_StateOfTheState;
Route::Flag _Route_Flag;
Source::Flag _Source_Flag;
Diskstream::Flag _Diskstream_Flag;
Location::Flags _Location_Flags;
PositionLockStyle _PositionLockStyle;
Track::FreezeState _Track_FreezeState;
AutomationList::InterpolationStyle _AutomationList_InterpolationStyle;
AnyTime::Type _AnyTime_Type;
ExportFilename::TimeFormat _ExportFilename_TimeFormat;
ExportFilename::DateFormat _ExportFilename_DateFormat;
ExportFormatBase::Type _ExportFormatBase_Type;
ExportFormatBase::FormatId _ExportFormatBase_FormatId;
ExportFormatBase::Endianness _ExportFormatBase_Endianness;
ExportFormatBase::SampleFormat _ExportFormatBase_SampleFormat;
ExportFormatBase::DitherType _ExportFormatBase_DitherType;
ExportFormatBase::Quality _ExportFormatBase_Quality;
ExportFormatBase::SampleRate _ExportFormatBase_SampleRate;
ExportFormatBase::SRCQuality _ExportFormatBase_SRCQuality;
ExportProfileManager::TimeFormat _ExportProfileManager_TimeFormat;
Delivery::Role _Delivery_Role;
IO::Direction _IO_Direction;
MuteMaster::MutePoint _MuteMaster_MutePoint;
MidiModel::DiffCommand::Property _MidiModel_DiffCommand_Property;
WaveformScale _WaveformScale;
WaveformShape _WaveformShape;
QuantizeType _QuantizeType;
Session::PostTransportWork _Session_PostTransportWork;
Session::SlaveState _Session_SlaveState;
MTC_Status _MIDI_MTC_Status;
#define REGISTER(e) enum_writer.register_distinct (typeid(e).name(), i, s); i.clear(); s.clear()
#define REGISTER_BITS(e) enum_writer.register_bits (typeid(e).name(), i, s); i.clear(); s.clear()
#define REGISTER_ENUM(e) i.push_back (e); s.push_back (#e)
#define REGISTER_CLASS_ENUM(t,e) i.push_back (t::e); s.push_back (#e)
REGISTER_ENUM (OverlapNone);
REGISTER_ENUM (OverlapInternal);
REGISTER_ENUM (OverlapStart);
REGISTER_ENUM (OverlapEnd);
REGISTER_ENUM (OverlapExternal);
REGISTER (_OverlapType);
REGISTER_ENUM (GainAutomation);
REGISTER_ENUM (PanAutomation);
REGISTER_ENUM (PluginAutomation);
REGISTER_ENUM (SoloAutomation);
REGISTER_ENUM (MuteAutomation);
REGISTER_ENUM (MidiCCAutomation);
REGISTER_ENUM (FadeInAutomation);
REGISTER_ENUM (FadeOutAutomation);
REGISTER_ENUM (EnvelopeAutomation);
REGISTER_BITS (_AutomationType);
REGISTER_ENUM (Off);
REGISTER_ENUM (Write);
REGISTER_ENUM (Touch);
REGISTER_ENUM (Play);
REGISTER_BITS (_AutoState);
REGISTER_ENUM (Absolute);
REGISTER_ENUM (Trim);
REGISTER_BITS (_AutoStyle);
REGISTER_ENUM (CaptureTime);
REGISTER_ENUM (ExistingMaterial);
REGISTER (_AlignStyle);
REGISTER_ENUM (MeterInput);
REGISTER_ENUM (MeterPreFader);
REGISTER_ENUM (MeterPostFader);
REGISTER_ENUM (MeterCustom);
REGISTER (_MeterPoint);
REGISTER_ENUM (Normal);
REGISTER_ENUM (NonLayered);
REGISTER_ENUM (Destructive);
REGISTER (_TrackMode);
REGISTER_ENUM (Sustained);
REGISTER_ENUM (Percussive);
REGISTER (_NoteMode);
REGISTER_ENUM (AllChannels);
REGISTER_ENUM (FilterChannels);
REGISTER_ENUM (ForceChannel);
REGISTER (_ChannelMode);
REGISTER_ENUM (MeterColors);
REGISTER_ENUM (ChannelColors);
REGISTER_ENUM (TrackColor);
REGISTER (_ColorMode);
REGISTER_ENUM (MeterFalloffOff);
REGISTER_ENUM (MeterFalloffSlowest);
REGISTER_ENUM (MeterFalloffSlow);
REGISTER_ENUM (MeterFalloffMedium);
REGISTER_ENUM (MeterFalloffFast);
REGISTER_ENUM (MeterFalloffFaster);
REGISTER_ENUM (MeterFalloffFastest);
REGISTER (_MeterFalloff);
REGISTER_ENUM (MeterHoldOff);
REGISTER_ENUM (MeterHoldShort);
REGISTER_ENUM (MeterHoldMedium);
REGISTER_ENUM (MeterHoldLong);
REGISTER (_MeterHold);
REGISTER_ENUM (Slide);
REGISTER_ENUM (Splice);
REGISTER (_EditMode);
REGISTER_ENUM (Start);
REGISTER_ENUM (End);
REGISTER_ENUM (SyncPoint);
REGISTER (_RegionPoint);
REGISTER_ENUM (PreFader);
REGISTER_ENUM (PostFader);
REGISTER (_Placement);
REGISTER_ENUM (HardwareMonitoring);
REGISTER_ENUM (SoftwareMonitoring);
REGISTER_ENUM (ExternalMonitoring);
REGISTER (_MonitorModel);
REGISTER_ENUM (DenormalNone);
REGISTER_ENUM (DenormalFTZ);
REGISTER_ENUM (DenormalDAZ);
REGISTER_ENUM (DenormalFTZDAZ);
REGISTER (_DenormalModel);
REGISTER_ENUM (UserOrdered);
REGISTER_ENUM (MixerOrdered);
REGISTER_ENUM (EditorOrdered);
REGISTER (_RemoteModel);
REGISTER_ENUM (FullCrossfade);
REGISTER_ENUM (ShortCrossfade);
REGISTER (_CrossfadeModel);
REGISTER_ENUM (LaterHigher);
REGISTER_ENUM (MoveAddHigher);
REGISTER_ENUM (AddHigher);
REGISTER (_LayerModel);
REGISTER_ENUM (InsertMergeReject);
REGISTER_ENUM (InsertMergeRelax);
REGISTER_ENUM (InsertMergeReplace);
REGISTER_ENUM (InsertMergeTruncateExisting);
REGISTER_ENUM (InsertMergeTruncateAddition);
REGISTER_ENUM (InsertMergeExtend);
REGISTER (_InsertMergePolicy);
REGISTER_ENUM (AfterFaderListen);
REGISTER_ENUM (PreFaderListen);
REGISTER (_ListenPosition);
REGISTER_ENUM (AutoConnectPhysical);
REGISTER_ENUM (AutoConnectMaster);
REGISTER_BITS (_AutoConnectOption);
REGISTER_ENUM (FormatFloat);
REGISTER_ENUM (FormatInt24);
REGISTER_ENUM (FormatInt16);
REGISTER (_SampleFormat);
REGISTER_ENUM (CDMarkerNone);
REGISTER_ENUM (CDMarkerCUE);
REGISTER_ENUM (CDMarkerTOC);
REGISTER (_CDMarkerFormat);
REGISTER_ENUM (BWF);
REGISTER_ENUM (WAVE);
REGISTER_ENUM (WAVE64);
REGISTER_ENUM (CAF);
REGISTER_ENUM (AIFF);
REGISTER_ENUM (iXML);
REGISTER_ENUM (RF64);
REGISTER (_HeaderFormat);
REGISTER_ENUM (AudioUnit);
REGISTER_ENUM (LADSPA);
REGISTER_ENUM (VST);
REGISTER (_PluginType);
REGISTER_ENUM (MTC);
REGISTER_ENUM (JACK);
REGISTER_ENUM (MIDIClock);
REGISTER (_SyncSource);
REGISTER_ENUM (Sprung);
REGISTER_ENUM (Wheel);
REGISTER (_ShuttleBehaviour);
REGISTER_ENUM (Percentage);
REGISTER_ENUM (Semitones);
REGISTER (_ShuttleUnits);
REGISTER_CLASS_ENUM (Session, Disabled);
REGISTER_CLASS_ENUM (Session, Enabled);
REGISTER_CLASS_ENUM (Session, Recording);
REGISTER (_Session_RecordState);
REGISTER_CLASS_ENUM (SessionEvent, SetTransportSpeed);
REGISTER_CLASS_ENUM (SessionEvent, SetTrackSpeed);
REGISTER_CLASS_ENUM (SessionEvent, Locate);
REGISTER_CLASS_ENUM (SessionEvent, LocateRoll);
REGISTER_CLASS_ENUM (SessionEvent, LocateRollLocate);
REGISTER_CLASS_ENUM (SessionEvent, SetLoop);
REGISTER_CLASS_ENUM (SessionEvent, PunchIn);
REGISTER_CLASS_ENUM (SessionEvent, PunchOut);
REGISTER_CLASS_ENUM (SessionEvent, RangeStop);
REGISTER_CLASS_ENUM (SessionEvent, RangeLocate);
REGISTER_CLASS_ENUM (SessionEvent, Overwrite);
REGISTER_CLASS_ENUM (SessionEvent, SetSyncSource);
REGISTER_CLASS_ENUM (SessionEvent, Audition);
REGISTER_CLASS_ENUM (SessionEvent, InputConfigurationChange);
REGISTER_CLASS_ENUM (SessionEvent, SetPlayAudioRange);
REGISTER_CLASS_ENUM (SessionEvent, StopOnce);
REGISTER_CLASS_ENUM (SessionEvent, AutoLoop);
REGISTER (_SessionEvent_Type);
REGISTER_CLASS_ENUM (Session, Stopped);
REGISTER_CLASS_ENUM (Session, Waiting);
REGISTER_CLASS_ENUM (Session, Running);
REGISTER (_Session_SlaveState);
REGISTER_ENUM (MTC_Stopped);
REGISTER_ENUM (MTC_Forward);
REGISTER_ENUM (MTC_Backward);
REGISTER (_MIDI_MTC_Status);
REGISTER_CLASS_ENUM (Session, PostTransportStop);
REGISTER_CLASS_ENUM (Session, PostTransportDisableRecord);
REGISTER_CLASS_ENUM (Session, PostTransportPosition);
REGISTER_CLASS_ENUM (Session, PostTransportDidRecord);
REGISTER_CLASS_ENUM (Session, PostTransportDuration);
REGISTER_CLASS_ENUM (Session, PostTransportLocate);
REGISTER_CLASS_ENUM (Session, PostTransportRoll);
REGISTER_CLASS_ENUM (Session, PostTransportAbort);
REGISTER_CLASS_ENUM (Session, PostTransportOverWrite);
REGISTER_CLASS_ENUM (Session, PostTransportSpeed);
REGISTER_CLASS_ENUM (Session, PostTransportAudition);
REGISTER_CLASS_ENUM (Session, PostTransportScrub);
REGISTER_CLASS_ENUM (Session, PostTransportReverse);
REGISTER_CLASS_ENUM (Session, PostTransportInputChange);
REGISTER_CLASS_ENUM (Session, PostTransportCurveRealloc);
REGISTER_CLASS_ENUM (Session, PostTransportClearSubstate);
REGISTER_BITS (_Session_PostTransportWork);
REGISTER_CLASS_ENUM (Session, Clean);
REGISTER_CLASS_ENUM (Session, Dirty);
REGISTER_CLASS_ENUM (Session, CannotSave);
REGISTER_CLASS_ENUM (Session, Deletion);
REGISTER_CLASS_ENUM (Session, InitialConnecting);
REGISTER_CLASS_ENUM (Session, Loading);
REGISTER_CLASS_ENUM (Session, InCleanup);
REGISTER_BITS (_Session_StateOfTheState);
REGISTER_ENUM (timecode_23976);
REGISTER_ENUM (timecode_24);
REGISTER_ENUM (timecode_24976);
REGISTER_ENUM (timecode_25);
REGISTER_ENUM (timecode_2997);
REGISTER_ENUM (timecode_2997drop);
REGISTER_ENUM (timecode_30);
REGISTER_ENUM (timecode_30drop);
REGISTER_ENUM (timecode_5994);
REGISTER_ENUM (timecode_60);
REGISTER (_Session_TimecodeFormat);
REGISTER_CLASS_ENUM (Session, pullup_Plus4Plus1);
REGISTER_CLASS_ENUM (Session, pullup_Plus4);
REGISTER_CLASS_ENUM (Session, pullup_Plus4Minus1);
REGISTER_CLASS_ENUM (Session, pullup_Plus1);
REGISTER_CLASS_ENUM (Session, pullup_None);
REGISTER_CLASS_ENUM (Session, pullup_Minus1);
REGISTER_CLASS_ENUM (Session, pullup_Minus4Plus1);
REGISTER_CLASS_ENUM (Session, pullup_Minus4);
REGISTER_CLASS_ENUM (Session, pullup_Minus4Minus1);
REGISTER (_Session_PullupFormat);
REGISTER_CLASS_ENUM (Route, Hidden);
REGISTER_CLASS_ENUM (Route, MasterOut);
REGISTER_CLASS_ENUM (Route, MonitorOut);
REGISTER_BITS (_Route_Flag);
REGISTER_CLASS_ENUM (Source, Writable);
REGISTER_CLASS_ENUM (Source, CanRename);
REGISTER_CLASS_ENUM (Source, Broadcast);
REGISTER_CLASS_ENUM (Source, Removable);
REGISTER_CLASS_ENUM (Source, RemovableIfEmpty);
REGISTER_CLASS_ENUM (Source, RemoveAtDestroy);
REGISTER_CLASS_ENUM (Source, NoPeakFile);
REGISTER_CLASS_ENUM (Source, Destructive);
REGISTER_BITS (_Source_Flag);
REGISTER_CLASS_ENUM (AudioRegion, Linear);
REGISTER_CLASS_ENUM (AudioRegion, Fast);
REGISTER_CLASS_ENUM (AudioRegion, Slow);
REGISTER_CLASS_ENUM (AudioRegion, LogA);
REGISTER_CLASS_ENUM (AudioRegion, LogB);
REGISTER (_AudioRegion_FadeShape);
REGISTER_CLASS_ENUM (Diskstream, Recordable);
REGISTER_CLASS_ENUM (Diskstream, Hidden);
REGISTER_CLASS_ENUM (Diskstream, Destructive);
REGISTER_BITS (_Diskstream_Flag);
REGISTER_CLASS_ENUM (Location, IsMark);
REGISTER_CLASS_ENUM (Location, IsAutoPunch);
REGISTER_CLASS_ENUM (Location, IsAutoLoop);
REGISTER_CLASS_ENUM (Location, IsHidden);
REGISTER_CLASS_ENUM (Location, IsCDMarker);
REGISTER_CLASS_ENUM (Location, IsSessionRange);
REGISTER_CLASS_ENUM (Location, IsRangeMarker);
REGISTER_BITS (_Location_Flags);
REGISTER_CLASS_ENUM (Panner, SameDirection);
REGISTER_CLASS_ENUM (Panner, OppositeDirection);
REGISTER (_Panner_LinkDirection);
REGISTER_CLASS_ENUM (Track, NoFreeze);
REGISTER_CLASS_ENUM (Track, Frozen);
REGISTER_CLASS_ENUM (Track, UnFrozen);
REGISTER (_Track_FreezeState);
REGISTER_CLASS_ENUM (AutomationList, Discrete);
REGISTER_CLASS_ENUM (AutomationList, Linear);
REGISTER_CLASS_ENUM (AutomationList, Curved);
REGISTER (_AutomationList_InterpolationStyle);
REGISTER_CLASS_ENUM (AnyTime, Timecode);
REGISTER_CLASS_ENUM (AnyTime, BBT);
REGISTER_CLASS_ENUM (AnyTime, Frames);
REGISTER_CLASS_ENUM (AnyTime, Seconds);
REGISTER (_AnyTime_Type);
REGISTER_CLASS_ENUM (ExportFilename, D_None);
REGISTER_CLASS_ENUM (ExportFilename, D_ISO);
REGISTER_CLASS_ENUM (ExportFilename, D_ISOShortY);
REGISTER_CLASS_ENUM (ExportFilename, D_BE);
REGISTER_CLASS_ENUM (ExportFilename, D_BEShortY);
REGISTER (_ExportFilename_DateFormat);
REGISTER_CLASS_ENUM (ExportFilename, T_None);
REGISTER_CLASS_ENUM (ExportFilename, T_NoDelim);
REGISTER_CLASS_ENUM (ExportFilename, T_Delim);
REGISTER (_ExportFilename_TimeFormat);
REGISTER_CLASS_ENUM (ExportFormatBase, T_None);
REGISTER_CLASS_ENUM (ExportFormatBase, T_Sndfile);
REGISTER (_ExportFormatBase_Type);
REGISTER_CLASS_ENUM (ExportFormatBase, F_None);
REGISTER_CLASS_ENUM (ExportFormatBase, F_WAV);
REGISTER_CLASS_ENUM (ExportFormatBase, F_W64);
REGISTER_CLASS_ENUM (ExportFormatBase, F_AIFF);
REGISTER_CLASS_ENUM (ExportFormatBase, F_AU);
REGISTER_CLASS_ENUM (ExportFormatBase, F_IRCAM);
REGISTER_CLASS_ENUM (ExportFormatBase, F_RAW);
REGISTER_CLASS_ENUM (ExportFormatBase, F_FLAC);
REGISTER_CLASS_ENUM (ExportFormatBase, F_Ogg);
REGISTER (_ExportFormatBase_FormatId);
REGISTER_CLASS_ENUM (ExportFormatBase, E_FileDefault);
REGISTER_CLASS_ENUM (ExportFormatBase, E_Little);
REGISTER_CLASS_ENUM (ExportFormatBase, E_Big);
REGISTER_CLASS_ENUM (ExportFormatBase, E_Cpu);
REGISTER (_ExportFormatBase_Endianness);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_None);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_8);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_16);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_24);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_32);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_U8);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_Float);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_Double);
REGISTER_CLASS_ENUM (ExportFormatBase, SF_Vorbis);
REGISTER (_ExportFormatBase_SampleFormat);
REGISTER_CLASS_ENUM (ExportFormatBase, D_None);
REGISTER_CLASS_ENUM (ExportFormatBase, D_Rect);
REGISTER_CLASS_ENUM (ExportFormatBase, D_Tri);
REGISTER_CLASS_ENUM (ExportFormatBase, D_Shaped);
REGISTER (_ExportFormatBase_DitherType);
REGISTER_CLASS_ENUM (ExportFormatBase, Q_None);
REGISTER_CLASS_ENUM (ExportFormatBase, Q_Any);
REGISTER_CLASS_ENUM (ExportFormatBase, Q_LosslessLinear);
REGISTER_CLASS_ENUM (ExportFormatBase, Q_LosslessCompression);
REGISTER_CLASS_ENUM (ExportFormatBase, Q_LossyCompression);
REGISTER (_ExportFormatBase_Quality);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_None);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_22_05);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_44_1);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_48);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_88_2);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_96);
REGISTER_CLASS_ENUM (ExportFormatBase, SR_192);
REGISTER (_ExportFormatBase_SampleRate);
REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincBest);
REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincMedium);
REGISTER_CLASS_ENUM (ExportFormatBase, SRC_SincFast);
REGISTER_CLASS_ENUM (ExportFormatBase, SRC_ZeroOrderHold);
REGISTER_CLASS_ENUM (ExportFormatBase, SRC_Linear);
REGISTER (_ExportFormatBase_SRCQuality);
REGISTER_CLASS_ENUM (ExportProfileManager, Timecode);
REGISTER_CLASS_ENUM (ExportProfileManager, BBT);
REGISTER_CLASS_ENUM (ExportProfileManager, MinSec);
REGISTER_CLASS_ENUM (ExportProfileManager, Frames);
REGISTER_CLASS_ENUM (ExportProfileManager, Off);
REGISTER (_ExportProfileManager_TimeFormat);
REGISTER_CLASS_ENUM (Delivery, Insert);
REGISTER_CLASS_ENUM (Delivery, Send);
REGISTER_CLASS_ENUM (Delivery, Listen);
REGISTER_CLASS_ENUM (Delivery, Main);
REGISTER_CLASS_ENUM (Delivery, Aux);
REGISTER_BITS (_Delivery_Role);
REGISTER_CLASS_ENUM (MuteMaster, PreFader);
REGISTER_CLASS_ENUM (MuteMaster, PostFader);
REGISTER_CLASS_ENUM (MuteMaster, Listen);
REGISTER_CLASS_ENUM (MuteMaster, Main);
REGISTER_BITS (_MuteMaster_MutePoint);
REGISTER_CLASS_ENUM (IO, Input);
REGISTER_CLASS_ENUM (IO, Output);
REGISTER (_IO_Direction);
REGISTER_CLASS_ENUM (MidiModel::DiffCommand, NoteNumber);
REGISTER_CLASS_ENUM (MidiModel::DiffCommand, Channel);
REGISTER_CLASS_ENUM (MidiModel::DiffCommand, Velocity);
REGISTER_CLASS_ENUM (MidiModel::DiffCommand, StartTime);
REGISTER_CLASS_ENUM (MidiModel::DiffCommand, Length);
REGISTER (_MidiModel_DiffCommand_Property);
REGISTER_ENUM(Linear);
REGISTER_ENUM(Logarithmic);
REGISTER(_WaveformScale);
REGISTER_ENUM(Traditional);
REGISTER_ENUM(Rectified);
REGISTER(_WaveformShape);
REGISTER_ENUM(Plain);
REGISTER_ENUM(Legato);
REGISTER_ENUM(Groove);
REGISTER(_QuantizeType);
REGISTER_ENUM(AudioTime);
REGISTER_ENUM(MusicTime);
REGISTER(_PositionLockStyle);
}
} /* 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, 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, RemoteModel& var)
{
std::string s;
o >> s;
var = (RemoteModel) string_2_enum (s, var);
return o;
}
std::ostream& operator<<(std::ostream& o, const RemoteModel& 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, CrossfadeModel& var)
{
std::string s;
o >> s;
var = (CrossfadeModel) string_2_enum (s, var);
return o;
}
std::ostream& operator<<(std::ostream& o, const CrossfadeModel& 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;
}