API Documentation
Loading...
Searching...
No Matches
SubtitleFile.h
Go to the documentation of this file.
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/TimeSpan.h>
4#include <NDEVR/BufferedScanner.h>
5namespace NDEVR
6{
7 /**--------------------------------------------------------------------------------------------------
8 \brief Class which can be used to write a subtitle in real time to a file, which can be played
9 back alongside a video being recorded concurrently.
10 **/
26 /**--------------------------------------------------------------------------------------------------
27 \brief Class which can be used to read a subtitle file and return the subtitle that should be
28 played at a specific time.
29 **/
42
43}
#define NDEVR_WIDGETS_API
Definition DLLInfo.h:59
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:56
Implentation of Scanner, however all data is cached. Faster, but consumes.
Definition BufferedScanner.h:42
Logic for reading or writing to a file as well as navigating filesystems.
Definition File.h:48
The core String class for the NDEVR API.
Definition String.h:69
Class which can be used to read a subtitle file and return the subtitle that should be played at a sp...
Definition SubtitleFile.h:31
String currentText(const TimeSpan &current) const
SubtitleFileReader(const File &file)
Buffer< std::pair< Vector< 2, TimeSpan >, String > > m_subtitles
Definition SubtitleFile.h:39
TimeSpan convertFromString(const String &string)
BufferedScanner m_scanner
Definition SubtitleFile.h:40
Class which can be used to write a subtitle in real time to a file, which can be played back alongsid...
Definition SubtitleFile.h:12
TimeSpan m_current_time
Definition SubtitleFile.h:23
String m_last_text
Definition SubtitleFile.h:21
TimeSpan m_last_subtitle_start
Definition SubtitleFile.h:22
void setCurrentTime(TimeSpan span)
void addSubtitle(const String &text)
SubtitleFileWriter(const File &file)
void finish(File file)
File m_file
Definition SubtitleFile.h:20
Stores a time span, or difference between two times, with an optional start time.
Definition TimeSpan.h:46
Definition ACIColor.h:37
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:96