Open Ephys GUI
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
Processors
DataThreads
DataThread.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 __DATATHREAD_H_C454F4DB__
25
#define __DATATHREAD_H_C454F4DB__
26
27
#include "../../../JuceLibraryCode/JuceHeader.h"
28
#include <stdio.h>
29
#include "DataBuffer.h"
30
31
/**
32
33
Abstract base class for a data input thread owned by the SourceNode.
34
35
@see SourceNode
36
37
*/
38
39
40
class
SourceNode
;
41
42
43
class
DataThread
:
public
Thread
44
{
45
46
public
:
47
48
DataThread
(
SourceNode
* sn);
49
~
DataThread
();
50
51
void
run();
52
53
DataBuffer
* getBufferAddress();
54
55
virtual
bool
updateBuffer() = 0;
56
57
ScopedPointer<DataBuffer> dataBuffer;
58
59
virtual
bool
foundInputSource() = 0;
60
virtual
bool
startAcquisition() = 0;
61
virtual
bool
stopAcquisition() = 0;
62
virtual
int
getNumChannels() = 0;
63
virtual
float
getSampleRate() = 0;
64
virtual
float
getBitVolts() = 0;
65
66
SourceNode
* sn;
67
68
private
:
69
70
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (
DataThread
);
71
72
73
};
74
75
76
#endif // __DATATHREAD_H_C454F4DB__
Generated on Sun May 20 2012 21:23:22 for Open Ephys GUI by
1.8.1