forked from ChrisVeigl/BrainBay
-
Notifications
You must be signed in to change notification settings - Fork 1
/
ob_compare.h
41 lines (29 loc) · 1.05 KB
/
ob_compare.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
/* -----------------------------------------------------------------------------
BrainBay Version 1.7, GPL 2003-2010, contact: chris@shifz.org
MODULE: OB_COMPARE.H: declarations for the Comparator-Object
Author: Chris Veigl
This Object compares two inputs (if they are greater, less or equal)
If the condition is met, the output is copied from input port 1,
if not, the output is set to INVALID_VALUE
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 COMPAREOBJ : public BASE_CL
{
public:
float inputA;
float inputB;
int method;
int out_invalid;
float out_value ;
COMPAREOBJ(int num);
void make_dialog(void);
void load(HANDLE hFile);
void incoming_data(int port, float value);
void save(HANDLE hFile);
void work(void);
~COMPAREOBJ();
};