Hide Font members behind accessors.
[dcpomatic.git] / src / lib / font.h
index 8021ab5bc662e59bc918a48fdf3bea18631637cd..0dedf7e493f52071b354be8309418df1f6195a83 100644 (file)
 class Font
 {
 public:
-       Font (std::string id_)
-               : id (id_) {}
+       Font (std::string id)
+               : _id (id) {}
 
        Font (cxml::NodePtr node);
 
        void as_xml (xmlpp::Node* node);
-       
+
+       std::string id () const {
+               return _id;
+       }
+
+       boost::optional<boost::filesystem::path> file () const {
+               return _file;
+       }
+
+       void set_file (boost::filesystem::path file) {
+               _file = file;
+       }
+
+private:       
        /** Font ID, used to describe it in the subtitle content */
-       std::string id;
-       boost::optional<boost::filesystem::path> file;
+       std::string _id;
+       boost::optional<boost::filesystem::path> _file;
 };
 
 bool