2#include <NDEVR/TimeSpan.h>
3#include <NDEVR/BufferedScanner.h>
84 if (times.size() >= 2)
97 if (iter.first[
MAX] >= current)
99 if (iter.first[
MIN] <= current)
#define lib_assert(expression, message)
Asserts some logic in the code. Disabled in non debug mode by default. Can be re-enabled in release u...
Definition LibAssert.h:70
The equivelent of std::vector but with a bit more control. The basic array unit of the library.
Definition Buffer.hpp:64
constexpr t_index_type size() const
Definition Buffer.hpp:1461
Buffer< t_other_type, t_other_index_type, t_other_memory_allocator, t_other_memory_manager > getAs() const
Definition Buffer.hpp:177
void clear()
Definition Buffer.hpp:572
Definition BufferedScanner.h:38
bool nextLine(String &string, bool clear_string=true) final override
Definition BufferedScanner.cpp:42
NDEVR_BASE_API FILE * open(OpenMode mode, bool append=false)
Definition File.cpp:1419
NDEVR_BASE_API void close()
Definition File.cpp:1610
NDEVR_BASE_API void create(bool override_file) const
Definition File.cpp:1744
@ e_ascii_write
Definition File.h:54
NDEVR_BASE_API bool moveTo(File &file, bool override_file, ProgressInfo *log=nullptr, bool is_source_temp=false)
Definition File.cpp:645
NDEVR_BASE_API Buffer< String, uint04, ObjectAllocator< false > > splitString(char delimiter, bool preserve_empty=true) const
Definition String.cpp:57
Definition SubtitleFile.h:68
String currentText(const TimeSpan ¤t) const
Definition SubtitleFile.h:93
SubtitleFileReader(const File &file)
Definition SubtitleFile.h:70
Buffer< std::pair< Vector< 2, TimeSpan >, String > > m_subtitles
Definition SubtitleFile.h:118
TimeSpan convertFromString(const String &string)
Definition SubtitleFile.h:108
BufferedScanner m_scanner
Definition SubtitleFile.h:119
void readText()
Definition SubtitleFile.h:75
Definition SubtitleFile.h:7
TimeSpan m_current_time
Definition SubtitleFile.h:63
String m_last_text
Definition SubtitleFile.h:61
TimeSpan m_last_subtitle_start
Definition SubtitleFile.h:62
void setCurrentTime(TimeSpan span)
Definition SubtitleFile.h:17
void addSubtitle(const String &text)
Definition SubtitleFile.h:23
SubtitleFileWriter(const File &file)
Definition SubtitleFile.h:9
uint04 m_text_index
Definition SubtitleFile.h:64
void finish(File file)
Definition SubtitleFile.h:49
File m_file
Definition SubtitleFile.h:60
void writeText()
Definition SubtitleFile.h:32
static constexpr uint08 SECOND
Definition Time.h:84
static constexpr uint08 MINUTE
Definition Time.h:85
static constexpr uint08 HOUR
Definition Time.h:86
NDEVR_BASE_API String getTimeString(const String &format_string) const
Definition TimeSpan.cpp:18
An element of a vector space. An element of the real coordinate space Rn Basis vector,...
Definition Vector.hpp:62
int64_t sint08
-Defines an alias representing an 8 byte, signed integer -Can represent exact integer values -9223372...
Definition BaseValues.hpp:86
@ MIN
Definition BaseValues.hpp:226
@ MAX
Definition BaseValues.hpp:227
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
Definition BaseValues.hpp:120
constexpr t_to cast(const Angle< t_from > &value)
Definition Angle.h:514