X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fratio.h;h=40f596ab8ea6dd1f3d0aa6a9c9bb6e7b69d4428d;hb=68dda7cd10c973a9342afd3ef606eb6012dc723b;hp=42f29458ab883deead8b9ea4f826d3eefa6da5d1;hpb=29377b18a8cef724c8e2de2316a66ceae89a2e9a;p=dcpomatic.git diff --git a/src/lib/ratio.h b/src/lib/ratio.h index 42f29458a..40f596ab8 100644 --- a/src/lib/ratio.h +++ b/src/lib/ratio.h @@ -1,5 +1,5 @@ /* - Copyright (C) 2013 Carl Hetherington + Copyright (C) 2013-2018 Carl Hetherington This file is part of DCP-o-matic. @@ -25,6 +25,9 @@ #include #include +/** @class Ratio + * @brief Description of an image ratio. + */ class Ratio : public boost::noncopyable { public: @@ -46,6 +49,10 @@ public: std::string container_nickname () const; + bool used_for_container () const { + return static_cast (_container_nickname); + } + std::string isdcf_name () const { return _isdcf_name; }