5 virtual t_size get_chapter_count()
const = 0;
12 virtual void set_chapter_count(
t_size p_count) = 0;
18 virtual double get_pregap()
const = 0;
19 virtual void set_pregap(
double val) = 0;
32 template<
typename file_info_ = file_info_impl>
49 void set_pregap(
double val) {PFC_ASSERT(val >= 0); m_pregap = val;}
60 FB2K_MAKE_SERVICE_INTERFACE_ENTRYPOINT(
chapterizer);
64 virtual bool is_our_path(
const char * p_path) = 0;
77 virtual bool supports_pregaps() = 0;
82 static bool g_is_pregap_capable(
const char * p_path);
94 inline operator const char*()
const {
return m_buffer;}
t_size get_chapter_count() const
Returns number of chapters.
chapter_list_impl_t chapter_list_impl
void set_info(t_size p_chapter, const file_info &p_info)
Modifies description of specified chapter.
Interface for object storing list of chapters.
This service implements chapter list editing operations for various file formats, e...
void set_pregap(double val)
file_info_ & get_info_(t_size p_chapter)
pfc::array_t< file_info_ > m_infos
double get_pregap() const
Main interface class for information about some playable object.
unsigned cuesheet_parse_index_time_ticks_e(const char *p_string, t_size p_length)
string8_fastalloc string_formatter
void set_chapter_count(t_size p_count)
Sets number of chapters.
Base class for all service classes. Provides interfaces for reference counter and querying for differ...
const file_info & get_info(t_size p_chapter) const
Queries description of specified chapter.
const t_self & operator=(const chapter_list &p_source)
Autopointer class to be used with all services. Manages reference counter calls behind-the-scenes.
This is free and unencumbered software released into the public domain Anyone is free to copy
double cuesheet_parse_index_time_e(const char *p_string, t_size p_length)
chapter_list_impl_t(const chapter_list &p_source)
chapter_list_impl_t< file_info_ > t_self
const chapter_list & operator=(const chapter_list &p_source)