]> git.decadent.org.uk Git - videolink.git/blob - vob_list.hpp
4253bb145d8eae7af0ea93c485c238b7dc53b61f
[videolink.git] / vob_list.hpp
1 // Copyright 2006 Ben Hutchings <ben@decadent.org.uk>.
2 // See the file "COPYING" for licence details.
3
4 #ifndef INC_VOB_LIST_HPP
5 #define INC_VOB_LIST_HPP
6
7 #include <list>
8 #include <stdexcept>
9 #include <string>
10
11 struct vob_ref
12 {
13     std::string file;           // file name (absolute, resolved rel. to list)
14     std::string chapters;       // chapters attribute, unmodified
15     std::string pause;          // pause attribute, unmodified
16 };
17
18 typedef std::list<vob_ref> vob_list;
19
20 vob_list read_vob_list(const std::string & file_name);
21
22 struct xml_error : public std::runtime_error
23 {
24     xml_error(const std::string & path, int line, const std::string & message);
25 };
26
27 #endif // !INC_VOB_LIST_HPP