API Documentation
Loading...
Searching...
No Matches
SubtitleFileReader Class Reference

Class which can be used to read a subtitle file and return the subtitle that should be played at a specific time. More...

#include <SubtitleFile.h>

Collaboration diagram for SubtitleFileReader:
[legend]

Public Member Functions

String currentText (const TimeSpan &current) const
 
void readText ()
 
 SubtitleFileReader (const File &file)
 

Protected Member Functions

TimeSpan convertFromString (const String &string)
 

Protected Attributes

BufferedScanner m_scanner
 
Buffer< std::pair< Vector< 2, TimeSpan >, String > > m_subtitles
 

Detailed Description

Class which can be used to read a subtitle file and return the subtitle that should be played at a specific time.


Constructor & Destructor Documentation

◆ SubtitleFileReader()

SubtitleFileReader ( const File & file)

Member Function Documentation

◆ convertFromString()

TimeSpan convertFromString ( const String & string)
protected

◆ currentText()

String currentText ( const TimeSpan & current) const

◆ readText()

void readText ( )

Member Data Documentation

◆ m_scanner

BufferedScanner m_scanner
protected

◆ m_subtitles

Buffer<std::pair<Vector<2, TimeSpan>, String> > m_subtitles
protected

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