/*
- Copyright (C) 2014 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2014-2021 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#define LIBSUB_READER_H
#include "raw_subtitle.h"
-#include <list>
#include <map>
#include <string>
+#include <vector>
+
+struct subrip_reader_convert_line_test;
namespace sub {
class Reader
{
public:
- std::list<RawSubtitle> subtitles () const {
+ virtual ~Reader () {}
+
+ std::vector<RawSubtitle> subtitles () const {
return _subs;
}
}
protected:
+ friend struct ::subrip_reader_convert_line_test;
+
void warn (std::string) const;
- std::list<RawSubtitle> _subs;
+ std::vector<RawSubtitle> _subs;
};
}