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
moPresets.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moPresets.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_PRESETS_H__
33 #define __MO_PRESETS_H__
34 
35 #include "moTypes.h"
36 #include "moConfig.h"
37 #include "moEffectState.h"
38 
40 {
41 public:
44 //void SetCantPreset(MOint);
45 //void SetCantParams(MOint);
46  MOint** preset;//presetnum*paramnum
47  moEffectState* state;//*presetnum
49 
50  moPresets();
52  virtual ~moPresets();
53 
54  MOboolean Init( MOint, MOint);//(0) cuantos presets voy a guardar,(1) el archivo de configuracion para saber cuantos parametros tengo que guardar
55  MOboolean Finish();
56  const moEffectState& Load( MOint p, moConfig* conf, const moEffectState& fxstate );
57  void Save(MOint p, moConfig* conf, const moEffectState& fxstate);
58 };
59 
60 #endif
61 
virtual MOboolean Finish()
Finaliza el objeto, libera recursos.
Definition: moAbstract.cpp:147
MOint presetnum
Definition: moPresets.h:42
#define MOboolean
Definition: moTypes.h:385
MOboolean * setting
Definition: moPresets.h:48
Clase base abstracta de donde deben derivar los objetos [virtual pura].
Definition: moAbstract.h:191
virtual MOboolean Init()
Inicializa el objeto.
Definition: moAbstract.cpp:141
#define LIBMOLDEO_API
Definition: moTypes.h:180
MOint paramnum
Definition: moPresets.h:43
#define MOint
Definition: moTypes.h:388
moEffectState * state
Definition: moPresets.h:47
MOint ** preset
Definition: moPresets.h:46
almacena la configuración de los parámetros de un objeto en un archivo XML
Definition: moConfig.h:193