82 typedef std::pair<PBD::UUID, std::string>
FilePair;
83 typedef std::map<PBD::UUID, std::string>
FileMap;
106 std::vector<std::string>
find_file (std::string
const& pattern);
132 std::shared_ptr<LocationList> ranges)
135 , selection_range (selection_range)
196 std::shared_ptr<FormatList const>
list;
291 template <
typename T>
296 throw std::runtime_error (
"Programming error: Uninitialized list in ExportProfileManager");
Manages (de)serialization of export profiles and related classes.
void remove_format_profile(ExportFormatSpecPtr format)
bool init_channel_configs(XMLNodeList nodes)
FormatStatePtr deserialize_format(XMLNode &root)
std::shared_ptr< Location > single_range
std::list< ExportPresetPtr > PresetList
std::string export_config_dir
ChannelConfigStatePtr add_channel_config()
XMLNode & serialize_timespan(TimespanStatePtr state)
std::list< Location * > LocationList
bool set_state(XMLNode const &root)
void serialize_global_profile(XMLNode &root)
void serialize_profile(XMLNode &root)
bool init_timespans(XMLNodeList nodes)
ChannelConfigStateList channel_configs
std::shared_ptr< Warnings > get_warnings()
std::shared_ptr< ChannelConfigState > ChannelConfigStatePtr
PBD::Signal< void()> FormatListChanged
TimespanStateList timespans
ExportProfileManager(Session &s, ExportType type)
PBD::Searchpath search_path
bool check_sndfile_format(ExportFormatSpecPtr format, unsigned int channels)
std::list< FormatStatePtr > FormatStateList
std::shared_ptr< FormatList > format_list
std::list< ExportFormatSpecPtr > FormatList
bool init_formats(XMLNodeList nodes)
bool set_global_state(XMLNode const &root)
std::map< PBD::UUID, std::string > FileMap
std::list< FilenameStatePtr > FilenameStateList
void serialize_local_profile(XMLNode &root)
bool check_format(ExportFormatSpecPtr format, uint32_t channels)
ExportPresetPtr preset() const
PresetList const & get_presets()
FormatStatePtr duplicate_format_state(FormatStatePtr state)
std::list< T > const & check_list(std::list< T > const &list)
std::string save_format_to_disk(ExportFormatSpecPtr format)
std::string preset_filename(std::string const &preset_name)
std::shared_ptr< LocationList > ranges
std::pair< PBD::UUID, std::string > FilePair
FilenameStatePtr duplicate_filename_state(FilenameStatePtr state)
ExportFilenamePtr load_filename(XMLNode &node)
std::string get_sample_filename_for_format(ExportFilenamePtr filename, ExportFormatSpecPtr format)
std::shared_ptr< TimespanState > TimespanStatePtr
std::list< ChannelConfigStatePtr > ChannelConfigStateList
std::string set_single_range(samplepos_t start, samplepos_t end, std::string name)
void check_config(std::shared_ptr< Warnings > warnings, TimespanStatePtr timespan_state, ExportChannelConfigPtr channel_config, FormatStatePtr format_state, FilenameStatePtr filename_state)
void prepare_for_export()
std::list< ExportTimespanPtr > TimespanList
FilenameStateList const & get_filenames()
void remove_format_state(FormatStatePtr state)
bool set_local_state(XMLNode const &root)
ChannelConfigStateList const & get_channel_configs()
ExportPresetPtr new_preset(std::string const &name)
std::string xml_node_name
void remove_filename_state(FilenameStatePtr state)
std::shared_ptr< ExportHandler > HandlerPtr
ExportPresetPtr current_preset
std::vector< std::string > find_file(std::string const &pattern)
ExportFormatSpecPtr load_format(XMLNode &node)
std::shared_ptr< TimespanList > TimespanListPtr
std::list< TimespanStatePtr > TimespanStateList
void revert_format_profile(ExportFormatSpecPtr format)
void set_selection_range(samplepos_t start=0, samplepos_t end=0)
TimespanStatePtr deserialize_timespan(XMLNode &root)
bool load_preset(ExportPresetPtr preset)
TimespanStateList const & get_timespans()
std::shared_ptr< Location > selection_range
ExportPresetPtr save_preset(std::string const &name)
std::shared_ptr< FormatState > FormatStatePtr
bool init_filenames(XMLNodeList nodes)
std::shared_ptr< FilenameState > FilenameStatePtr
FormatStateList const & get_formats()
XMLNode & serialize_format(FormatStatePtr state)
ExportFormatSpecPtr get_new_format(ExportFormatSpecPtr original)
void clear_channel_configs()
void load_format_from_disk(std::string const &path)
void build_filenames(std::list< std::string > &result, ExportFilenamePtr filename, TimespanListPtr timespans, ExportChannelConfigPtr channel_config, ExportFormatSpecPtr format)
FilenameStateList filenames
void load_preset_from_disk(std::string const &path)
GtkImageIconNameData name
PBD::PropertyDescriptor< timepos_t > start
std::shared_ptr< ExportPreset > ExportPresetPtr
std::shared_ptr< ExportFilename > ExportFilenamePtr
std::shared_ptr< ExportChannelConfiguration > ExportChannelConfigPtr
std::shared_ptr< ExportFormatSpecification > ExportFormatSpecPtr
Temporal::samplepos_t samplepos_t
ExportChannelConfigPtr config
ChannelConfigState(ExportChannelConfigPtr ptr)
ExportFilenamePtr filename
FilenameState(ExportFilenamePtr ptr)
std::shared_ptr< LocationList > ranges
std::shared_ptr< Location > selection_range
TimespanState(std::shared_ptr< Location > selection_range, std::shared_ptr< LocationList > ranges)
TimespanListPtr timespans
std::list< std::string > warnings
std::list< std::string > errors
std::list< std::string > conflicting_filenames
std::vector< XMLNode * > XMLNodeList