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
moFileWrite.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moFileWrite.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 // Network device for input //
32 
33 #include "moConfig.h"
34 #include "moDeviceCode.h"
35 #include "moEventList.h"
36 #include "moIODeviceManager.h"
37 #include "moTypes.h"
38 
39 //#include "sdlnet/SDL_net.h"
40 #include "SDL_thread.h"
41 
42 #ifndef __MO_FILE_WRITE_H
43 #define __MO_FILE_WRITE_H
44 
46 {
47 public:
49  ~moFileWrite();
50 
51  void Update(moEventList*);
52  MOboolean Init();
57  MOboolean Finish();
58 
59 private:
60  moConfig config;
61 
62  moEventList *events;
63 };
64 
65 int file_write_thread_main(void *);
66 
67 #endif
68 =======
69 // Network device for input //
70 
71 #include "moConfig.h"
72 #include "ajCodigoDispositivo.h"
73 #include "moEventList.h"
74 #include "moIODeviceManager.h"
75 #include "moTypes.h"
76 
77 //#include "sdlnet/SDL_net.h"
78 #include "SDL_thread.h"
79 
80 #ifndef __MO_FILE_WRITE_H
81 #define __MO_FILE_WRITE_H
82 
83 class LIBMOLDEO_API ajFileWrite : public moIODevice
84 {
85 public:
86  ajFileWrite(moEventList*);
87  ~ajFileWrite();
88 
89  void Currentizar(moEventList*);
90  MOboolean Init();
91  MOswitch getEstado(MOcodigodisp);
92  MOswitch setEstado( MOcodigodisp,MOswitch);
93  MOint getValor(MOcodigodisp);
94  MOcodigodisp getCodigo( moText);
95  MOboolean Finish();
96 
97 private:
98  moConfig config;
99 
100  moEventList *eventos;
101 };
102 
103 int file_write_thread_main(void *);
104 
105 #endif
106 
virtual MOint GetValue(MOdevcode)=0
virtual MOboolean Finish()=0
virtual void Update(moEventList *)=0
#define MOboolean
Definition: moTypes.h:385
virtual MOdevcode GetCode(moText)=0
#define MOswitch
Definition: moTypes.h:386
#define LIBMOLDEO_API
Definition: moTypes.h:180
virtual MOboolean Init()=0
Lista de eventos.
Definition: moEventList.h:139
clase de para manejar textos
Definition: moText.h:75
#define MOdevcode
Definition: moTypes.h:412
int file_write_thread_main(void *)
#define MOint
Definition: moTypes.h:388
virtual MOswitch GetStatus(MOdevcode)=0
virtual MOswitch SetStatus(MOdevcode, MOswitch)=0
almacena la configuración de los parámetros de un objeto en un archivo XML
Definition: moConfig.h:193