summaryrefslogtreecommitdiff
path: root/src/subtitle_asset.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/subtitle_asset.h')
-rw-r--r--src/subtitle_asset.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/subtitle_asset.h b/src/subtitle_asset.h
index 2c542b6e..8ec57fce 100644
--- a/src/subtitle_asset.h
+++ b/src/subtitle_asset.h
@@ -120,7 +120,11 @@ public:
virtual int time_code_rate () const = 0;
- std::string raw_xml () const {
+ /** @return Raw XML loaded from, or written to, an on-disk asset, or boost::none if
+ * - this object was not created from an existing on-disk asset and has not been written to one, or
+ * - this asset is encrypted and no key is available.
+ */
+ virtual boost::optional<std::string> raw_xml () const {
return _raw_xml;
}
@@ -193,8 +197,8 @@ protected:
/** TTF font data that we need */
std::vector<Font> _fonts;
- /** The raw XML data that we read from our asset; useful for validation */
- std::string _raw_xml;
+ /** The raw XML data that we read from or wrote to our asset; useful for validation */
+ mutable boost::optional<std::string> _raw_xml;
private:
friend struct ::pull_fonts_test1;