chapter_list_impl Class Reference

Implements chapter_list. More...

#include <chapterizer.h>

Inheritance diagram for chapter_list_impl:

chapter_list

List of all members.

Public Member Functions

 chapter_list_impl (const chapter_list_impl &p_source)
 chapter_list_impl (const chapter_list &p_source)
 chapter_list_impl ()
const chapter_list_imploperator= (const chapter_list_impl &p_source)
const chapter_list_imploperator= (const chapter_list &p_source)
t_size get_chapter_count () const
 Returns number of chapters.
const file_infoget_info (t_size p_chapter) const
void set_chapter_count (t_size p_count)
 Sets number of chapters.
void set_info (t_size p_chapter, const file_info &p_info)


Detailed Description

Implements chapter_list.

Constructor & Destructor Documentation

chapter_list_impl::chapter_list_impl ( const chapter_list_impl p_source  )  [inline]

chapter_list_impl::chapter_list_impl ( const chapter_list p_source  )  [inline]

chapter_list_impl::chapter_list_impl (  )  [inline]


Member Function Documentation

const chapter_list_impl& chapter_list_impl::operator= ( const chapter_list_impl p_source  )  [inline]

const chapter_list_impl& chapter_list_impl::operator= ( const chapter_list p_source  )  [inline]

Reimplemented from chapter_list.

t_size chapter_list_impl::get_chapter_count (  )  const [inline, virtual]

Returns number of chapters.

Implements chapter_list.

const file_info& chapter_list_impl::get_info ( t_size  p_chapter  )  const [inline, virtual]

Queries description of specified chapter.

Parameters:
p_chapter Index of chapter to query, greater or equal zero and less than get_chapter_count() value. If p_chapter value is out of valid range, results are undefined (e.g. crash).
Returns:
reference to file_info object describing specified chapter (length part of file_info indicates distance between beginning of this chapter and next chapter mark). Returned reference value for temporary use only, becomes invalid after any non-const operation on the chapter_list object.

Implements chapter_list.

void chapter_list_impl::set_chapter_count ( t_size  p_count  )  [inline, virtual]

Sets number of chapters.

Implements chapter_list.

void chapter_list_impl::set_info ( t_size  p_chapter,
const file_info p_info 
) [inline, virtual]

Modifies description of specified chapter.

Parameters:
p_chapter_index Index of chapter to modify, greater or equal zero and less than get_chapter_count() value. If p_chapter value is out of valid range, results are undefined (e.g. crash).
p_info New chapter description. Note that length part of file_info is used to calculate chapter marks.

Implements chapter_list.


The documentation for this class was generated from the following file:

Generated on Thu Aug 28 21:15:44 2008 for foobar2000 SDK by  doxygen 1.5.5