foobar2000 SDK  2015-08-03
Data Structures | Typedefs | Functions
cue_parser Namespace Reference

Data Structures

class  chapterizer_impl_t
 
struct  cue_entry
 
class  embeddedcue_metadata_manager
 
class  input_wrapper_cue_t
 
struct  track_record
 

Typedefs

typedef pfc::chain_list_v2_t< cue_entryt_cue_entry_list
 
typedef pfc::map_t< unsigned, track_recordtrack_record_list
 

Functions

void parse (const char *p_cuesheet, t_cue_entry_list &p_out)
 
void parse_full (const char *p_cuesheet, cue_creator::t_entry_list &p_out)
 
void parse_info (const char *p_cuesheet, file_info &p_info, unsigned p_index)
 
 PFC_DECLARE_EXCEPTION (exception_bad_cuesheet, exception_io_data,"Invalid cuesheet")
 

Data Structure Documentation

struct cue_parser::cue_entry

Definition at line 148 of file cue_parser.h.

Data Fields
string8 m_file
t_cuesheet_index_list m_indexes
unsigned m_track_number
struct cue_parser::track_record

Definition at line 168 of file cue_parser.h.

Data Fields
string8 m_file
string8 m_flags
t_cuesheet_index_list m_index_list
file_info_record m_info

Typedef Documentation

Definition at line 154 of file cue_parser.h.

Definition at line 174 of file cue_parser.h.

Function Documentation

void cue_parser::parse ( const char *  p_cuesheet,
t_cue_entry_list p_out 
)

Throws exception_bad_cuesheet on failure.

Definition at line 621 of file cue_parser.cpp.

621  {
622  try {
623  cue_parser_callback_retrievelist callback(p_out);
624  g_parse_cue(p_cuesheet,callback);
625  callback.finalize();
626  } catch(exception_cue const & e) {
627  pfc::throw_exception_with_message<exception_bad_cuesheet>(PFC_string_formatter() << "Error parsing cuesheet: " << e.what());
628  }
629 }
static void g_parse_cue(const char *p_cuesheet, cue_parser_callback &p_callback)
Definition: cue_parser.cpp:594
void cue_parser::parse_full ( const char *  p_cuesheet,
cue_creator::t_entry_list p_out 
)

Throws exception_bad_cuesheet on failure.

Definition at line 744 of file cue_parser.cpp.

744  {
745  try {
746  {
747  cue_parser_callback_retrievecreatorentries callback(p_out);
748  g_parse_cue(p_cuesheet,callback);
749  callback.finalize();
750  }
751 
752  {
754  for(iter=p_out.first();iter.is_valid();++iter)
755  {
756  cue_parser_callback_retrieveinfo callback(iter->m_infos,iter->m_track_number);
757  g_parse_cue(p_cuesheet,callback);
758  callback.finalize();
759  }
760  }
761  } catch(exception_cue const & e) {
762  pfc::throw_exception_with_message< exception_bad_cuesheet > (PFC_string_formatter() << "Error parsing cuesheet: " << e.what());
763  }
764 }
bool is_valid() const
Definition: iterators.h:24
static void g_parse_cue(const char *p_cuesheet, cue_parser_callback &p_callback)
Definition: cue_parser.cpp:594
void cue_parser::parse_info ( const char *  p_cuesheet,
file_info p_info,
unsigned  p_index 
)

Throws exception_bad_cuesheet on failure.

Definition at line 630 of file cue_parser.cpp.

630  {
631  try {
632  cue_parser_callback_retrieveinfo callback(p_info,p_index);
633  g_parse_cue(p_cuesheet,callback);
634  callback.finalize();
635  } catch(exception_cue const & e) {
636  pfc::throw_exception_with_message< exception_bad_cuesheet > (PFC_string_formatter() << "Error parsing cuesheet: " << e.what());
637  }
638 }
static void g_parse_cue(const char *p_cuesheet, cue_parser_callback &p_callback)
Definition: cue_parser.cpp:594
cue_parser::PFC_DECLARE_EXCEPTION ( exception_bad_cuesheet  ,
exception_io_data  ,
"Invalid cuesheet"   
)