libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moPrePlugin.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moPrePlugin.h
4 
5  ****************************************************************************
6  * *
7  * This source is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This code is distributed in the hope that it will be useful, but *
13  * WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * General Public License for more details. *
16  * *
17  * A copy of the GNU General Public License is available on the World *
18  * Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19  * obtain it by writing to the Free Software Foundation, *
20  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  * *
22  ****************************************************************************
23 
24  Copyright(C) 2006 Fabricio Costa
25 
26  Authors:
27  Fabricio Costa
28 
29 
30 *******************************************************************************/
31 
32 #ifndef __MO_PRE_PLUGIN_H__
33 #define __MO_PRE_PLUGIN_H__
34 
35 #include "moBasePlugin.h"
36 #include "moPreEffect.h"
37 
39 {
40 public:
42  virtual ~moPreEffectFactory();
43  virtual moPreEffect* Create(void) = 0;
44  virtual void Destroy(moPreEffect* fx) = 0;
45 };
46 
49 
51 {
52 public:
54  int n;
55 
58 
60 
61  moPrePlugin() { handle = NULL; n = 0; array = NULL; m_factory = NULL;}
62  moPrePlugin(moText plugin_file) { handle = NULL; n = 0; array = NULL; m_factory = NULL; Load(plugin_file); }
63  virtual ~moPrePlugin() { if(handle != NULL) Unload(); }
64 
65  void Load(moText plugin_file);
66  void Unload();
67  moPreEffect* Create();
68  bool Destroy(moPreEffect *preeffect);
69  moText GetName() { return name; }
70 private:
71  moText name;
72  MOpluginHandle handle;
73 };
74 
75 moDeclareExportedDynamicArray( moPrePlugin*, moPrePluginsArray );
76 
77 LIBMOLDEO_API moPreEffect* moNewPreEffect(moText effect_name, moPrePluginsArray &plugins);
78 LIBMOLDEO_API bool moDeletePreEffect(moPreEffect* effect, moPrePluginsArray &plugins);
79 
80 #endif
81 
virtual ~moPrePlugin()
Definition: moPrePlugin.h:63
void(MO_PLG_ENTRY * DestroyPreEffectFactoryFunction)()
Definition: moPrePlugin.h:48
CreatePreEffectFactoryFunction CreatePreEffectFactory
Definition: moPrePlugin.h:56
LIBMOLDEO_API bool moDeletePreEffect(moPreEffect *effect, moPrePluginsArray &plugins)
clase base para definir Pre-Efectos.
Definition: moPreEffect.h:59
#define LIBMOLDEO_API
Definition: moTypes.h:180
moPreEffectFactory *(MO_PLG_ENTRY * CreatePreEffectFactoryFunction)()
Definition: moPrePlugin.h:47
#define MO_PLG_ENTRY
Definition: moBasePlugin.h:46
LIBMOLDEO_API moPreEffect * moNewPreEffect(moText effect_name, moPrePluginsArray &plugins)
clase de para manejar textos
Definition: moText.h:75
moDeclareExportedDynamicArray(moPrePlugin *, moPrePluginsArray)
moPreEffectFactory * m_factory
Definition: moPrePlugin.h:59
moPrePlugin(moText plugin_file)
Definition: moPrePlugin.h:62
moPreEffect ** array
Definition: moPrePlugin.h:53
moText GetName()
Definition: moPrePlugin.h:69
void * MOpluginHandle
Definition: moBasePlugin.h:44
DestroyPreEffectFactoryFunction DestroyPreEffectFactory
Definition: moPrePlugin.h:57