1 /**
2  * MltFactory.h - MLT Wrapper
3  * Copyright (C) 2004-2017 Meltytech, LLC
4  * Author: Charles Yates <charles.yates@gmail.com>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library 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 GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
19  */
20 
21 #ifndef MLTPP_FACTORY_H
22 #define MLTPP_FACTORY_H
23 
24 #include "MltConfig.h"
25 
26 #ifdef SWIG
27 #define MLTPP_DECLSPEC
28 #endif
29 
30 #include <framework/mlt.h>
31 
32 namespace Mlt
33 {
34 	class Properties;
35 	class Producer;
36 	class Filter;
37 	class Transition;
38 	class Consumer;
39 	class Profile;
40 	class Repository;
41 
42 	class MLTPP_DECLSPEC Factory
43 	{
44 		public:
45 			static Repository *init( const char *directory = NULL );
46 			static Properties *event_object( );
47 			static Producer *producer( Profile& profile, char *id, char *arg = NULL );
48 			static Filter *filter( Profile& profile, char *id, char *arg = NULL );
49 			static Transition *transition( Profile& profile, char *id, char *arg = NULL );
50 			static Consumer *consumer( Profile& profile, char *id, char *arg = NULL );
51 			static void close( );
52 	};
53 }
54 
55 #endif
56