+
+ bool check_format (ExportFormatSpecPtr format, uint32_t channels);
+ bool check_sndfile_format (ExportFormatSpecPtr format, unsigned int channels);
+
+ /* Utilities */
+
+ void build_filenames(std::list<std::string> & result, ExportFilenamePtr filename,
+ TimespanListPtr timespans, ExportChannelConfigPtr channel_config,
+ ExportFormatSpecPtr format);
+
+ /* Element state lists should never be empty, this is used to check them */
+ template<typename T>
+ std::list<T> const &
+ check_list (std::list<T> const & list)
+ {
+ if (list.empty()) {
+ throw std::runtime_error ("Programming error: Uninitialized list in ExportProfileManager");
+ }
+ return list;
+ }
+