Open Ephys GUI
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
Processors
DataThreads
NetworkThread.h
1
/*
2
------------------------------------------------------------------
3
4
This file is part of the Open Ephys GUI
5
Copyright (C) 2012 Open Ephys
6
7
------------------------------------------------------------------
8
9
This program is free software: you can redistribute it and/or modify
10
it under the terms of the GNU General Public License as published by
11
the Free Software Foundation, either version 3 of the License, or
12
(at your option) any later version.
13
14
This program is distributed in the hope that it will be useful,
15
but WITHOUT ANY WARRANTY; without even the implied warranty of
16
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
GNU General Public License for more details.
18
19
You should have received a copy of the GNU General Public License
20
along with this program. If not, see <http://www.gnu.org/licenses/>.
21
22
*/
23
24
#ifndef __NETWORKTHREAD_H_DD31EB15__
25
#define __NETWORKTHREAD_H_DD31EB15__
26
27
#include <stdio.h>
28
29
#include "../../../JuceLibraryCode/JuceHeader.h"
30
31
// #include "../../Network/unp.h"
32
// #include "../../Network/netcom.h"
33
// #include "../../Network/datapacket.h"
34
35
#include "DataThread.h"
36
37
/**
38
39
--OBSOLETE--
40
41
Receives data from a network source.
42
43
@see DataThread
44
45
*/
46
47
class
NetworkThread
:
public
DataThread
48
{
49
public
:
50
51
NetworkThread
(
SourceNode
* sn);
52
~
NetworkThread
();
53
54
bool
foundInputSource() {
return
true
;}
55
bool
startAcquisition() {
return
true
;}
56
bool
stopAcquisition() {
return
true
;}
57
int
getNumChannels() {
return
16;}
58
float
getSampleRate() {
return
40000.0;}
59
60
private
:
61
62
// NetCom my_netcom;
63
// NetComDat my_netcomdat;
64
65
// lfp_bank_net_t lfp;
66
67
DataBuffer
* dataBuffer;
68
69
float
thisSample[8];
70
71
bool
updateBuffer();
72
73
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
NetworkThread
);
74
75
};
76
77
78
79
#endif // __NETWORKTHREAD_H_DD31EB15__
Generated on Sun May 20 2012 21:23:22 for Open Ephys GUI by
1.8.1