]> git.sesse.net Git - casparcg/blob - core/module_dependencies.h
Merge pull request #506 from dimitry-ishenko-casparcg/fixes-flags
[casparcg] / core / module_dependencies.h
1 /*
2 * Copyright (c) 2011 Sveriges Television AB <info@casparcg.com>
3 *
4 * This file is part of CasparCG (www.casparcg.com).
5 *
6 * CasparCG 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 3 of the License, or
9 * (at your option) any later version.
10 *
11 * CasparCG 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 CasparCG. If not, see <http://www.gnu.org/licenses/>.
18 *
19 * Author: Helge Norberg, helge.norberg@svt.se
20 */
21
22 #pragma once
23
24 #include <common/memory.h>
25
26 #include "system_info_provider.h"
27 #include "producer/cg_proxy.h"
28 #include "producer/media_info/media_info_repository.h"
29 #include "producer/frame_producer.h"
30 #include "consumer/frame_consumer.h"
31
32 namespace caspar { namespace core {
33
34 struct module_dependencies
35 {
36         const spl::shared_ptr<system_info_provider_repository>  system_info_provider_repo;
37         const spl::shared_ptr<cg_producer_registry>                             cg_registry;
38         const spl::shared_ptr<media_info_repository>                    media_info_repo;
39         const spl::shared_ptr<frame_producer_registry>                  producer_registry;
40         const spl::shared_ptr<frame_consumer_registry>                  consumer_registry;
41
42         module_dependencies(
43                         spl::shared_ptr<system_info_provider_repository> system_info_provider_repo,
44                         spl::shared_ptr<cg_producer_registry> cg_registry,
45                         spl::shared_ptr<media_info_repository> media_info_repo,
46                         spl::shared_ptr<frame_producer_registry> producer_registry,
47                         spl::shared_ptr<frame_consumer_registry> consumer_registry)
48                 : system_info_provider_repo(std::move(system_info_provider_repo))
49                 , cg_registry(std::move(cg_registry))
50                 , media_info_repo(std::move(media_info_repo))
51                 , producer_registry(std::move(producer_registry))
52                 , consumer_registry(std::move(consumer_registry))
53         {
54         }
55 };
56
57 }}