X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcinema.h;h=74357f65d687e0261ded537e94b3b4f95afcfdb2;hb=d2137ac5db409e686b4d9b3fa567935a5e416d41;hp=251bb5d6131e3869d12f7cecfb5b92358a2d1db2;hpb=089b90439e745a218494e76b45e7df6215af01df;p=dcpomatic.git diff --git a/src/lib/cinema.h b/src/lib/cinema.h index 251bb5d61..74357f65d 100644 --- a/src/lib/cinema.h +++ b/src/lib/cinema.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2014 Carl Hetherington 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 @@ -17,32 +17,45 @@ */ +/** @file src/lib/cinema.h + * @brief Screen and Cinema classes. + */ + #include -#include +#include +#include class Cinema; -namespace cxml { - class Node; -} - +/** @class Screen + * @brief A representation of a Screen for KDM generation. + * + * This is the name of the screen and the certificate of its + * server. + */ class Screen { public: - Screen (std::string const & n, boost::shared_ptr cert) + Screen (std::string const & n, boost::shared_ptr cert) : name (n) , certificate (cert) {} - Screen (boost::shared_ptr); + Screen (cxml::ConstNodePtr); void as_xml (xmlpp::Element *) const; boost::shared_ptr cinema; std::string name; - boost::shared_ptr certificate; + boost::shared_ptr certificate; }; +/** @class Cinema + * @brief A description of a Cinema for KDM generation. + * + * This is a cinema name, contact email address and a list of + * Screen objects. + */ class Cinema : public boost::enable_shared_from_this { public: @@ -51,7 +64,9 @@ public: , email (e) {} - Cinema (boost::shared_ptr); + Cinema (cxml::ConstNodePtr); + + void read_screens (cxml::ConstNodePtr); void as_xml (xmlpp::Element *) const;