Fix incorrect day-of-month in LocalTime.
[libdcp.git] / src / text.h
index bbb99adb3bcbfeb68e967dafdb91b221e8ae86d5..fe314f764eafb6114b4d91b11e49a3fb5efe1720 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2014 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2015 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
@@ -23,6 +23,7 @@
 
 #include "types.h"
 #include <boost/shared_ptr.hpp>
+#include <boost/optional.hpp>
 #include <list>
 
 namespace cxml {
@@ -33,15 +34,19 @@ namespace dcp {
 
 class Font;
 
+/** @class Text
+ *  @brief Parser for Text nodes from subtitle XML.
+ */
 class Text
 {
 public:
+       /** Construct a default text node */
        Text ()
                : v_position (0)
                , v_align (TOP)
        {}
        
-       Text (boost::shared_ptr<const cxml::Node> node);
+       Text (boost::shared_ptr<const cxml::Node> node, int tcr);
 
        float v_position;
        VAlign v_align;