forked from ChrisVeigl/BrainBay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ob_file_writer.h
45 lines (31 loc) · 1.12 KB
/
ob_file_writer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact: chris@shifz.org
MODULE: OB_FILE_WRITER.H: contains the FILE - Writer-Object
Author: Chris Veigl
Using this Object, a File containing raw or ASCII-integer values
of the connected signale can be written. Delimiters for the Columns can be selected
the Signals are connected to the input-ports.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; See the
GNU General Public License for more details.
-----------------------------------------------------------------------------*/
#include "brainBay.h"
class FILE_WRITEROBJ : public BASE_CL
{
protected:
DWORD dwWritten;
public:
HANDLE file;
char filename[255];
int state;
int format;
FILE_WRITEROBJ(int num);
void update_inports(void);
void work(void);
void incoming_data(int port, float value);
void make_dialog(void);
void load(HANDLE hFile);
void save(HANDLE hFile);
~FILE_WRITEROBJ();
};