97e0910567686bb8251d6abcb30f3442f18d2bb1
[dcpomatic.git] / src / lib / create_cli.h
1 /*
2     Copyright (C) 2019 Carl Hetherington <cth@carlh.net>
3
4     This file is part of DCP-o-matic.
5
6     DCP-o-matic is free software; you can redistribute it and/or modify
7     it under the terms of the GNU General Public License as published by
8     the Free Software Foundation; either version 2 of the License, or
9     (at your option) any later version.
10
11     DCP-o-matic is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15
16     You should have received a copy of the GNU General Public License
17     along with DCP-o-matic.  If not, see <http://www.gnu.org/licenses/>.
18
19 */
20
21 #include "types.h"
22 #include <dcp/types.h>
23 #include <boost/optional.hpp>
24 #include <boost/filesystem.hpp>
25 #include <vector>
26
27 class DCPContentType;
28 class Ratio;
29
30 class CreateCLI
31 {
32 public:
33         CreateCLI (int argc, char* argv[]);
34
35         struct Content {
36                 boost::filesystem::path path;
37                 VideoFrameType frame_type;
38         };
39
40         bool version;
41         std::string name;
42         boost::optional<std::string> template_name;
43         bool encrypt;
44         bool threed;
45         DCPContentType const * dcp_content_type;
46         boost::optional<int> dcp_frame_rate;
47         Ratio const * container_ratio;
48         int still_length;
49         dcp::Standard standard;
50         bool no_use_isdcf_name;
51         boost::optional<boost::filesystem::path> config_dir;
52         boost::optional<boost::filesystem::path> output_dir;
53         boost::optional<std::string> error;
54         std::vector<Content> content;
55         bool fourk;
56         boost::optional<int> j2k_bandwidth;
57
58 private:
59         static std::string _help;
60 };