Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
plugin-GUI
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yehaojie
plugin-GUI
Commits
0d65ba45
Commit
0d65ba45
authored
9 years ago
by
Aaron Cuevas Lopez
Browse files
Options
Downloads
Patches
Plain Diff
Move methods from Datathread header to its cpp
parent
e4e63141
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
Source/Processors/DataThreads/DataThread.cpp
+52
-0
52 additions, 0 deletions
Source/Processors/DataThreads/DataThread.cpp
Source/Processors/DataThreads/DataThread.h
+14
-41
14 additions, 41 deletions
Source/Processors/DataThreads/DataThread.h
with
66 additions
and
41 deletions
Source/Processors/DataThreads/DataThread.cpp
+
52
−
0
View file @
0d65ba45
...
...
@@ -88,4 +88,56 @@ void DataThread::updateChannels()
sn
->
channels
[
i
]
->
bitVolts
=
channelInfo
[
i
].
gain
;
}
}
}
void
DataThread
::
setOutputHigh
()
{}
void
DataThread
::
setOutputLow
()
{}
int
DataThread
::
getNumAuxOutputs
()
{
return
0
;
}
int
DataThread
::
getNumAdcOutputs
()
{
return
0
;
}
int
DataThread
::
getNumEventChannels
()
{
return
0
;
}
bool
DataThread
::
isReady
()
{
return
true
;
}
int
DataThread
::
modifyChannelName
(
int
channel
,
String
newName
)
{
return
-
1
;
}
int
DataThread
::
modifyChannelGain
(
int
channel
,
float
gain
)
{
return
-
1
;
}
void
DataThread
::
getEventChannelNames
(
StringArray
&
names
)
{
}
bool
DataThread
::
usesCustomNames
()
{
return
false
;
}
void
*
DataThread
::
getDevice
()
{
return
0
;
}
void
DataThread
::
setDefaultChannelNames
()
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Source/Processors/DataThreads/DataThread.h
+
14
−
41
View file @
0d65ba45
...
...
@@ -71,10 +71,10 @@ public:
virtual
bool
updateBuffer
()
=
0
;
/** Experimental method used for testing data sources that can deliver outputs.*/
virtual
void
setOutputHigh
()
{}
virtual
void
setOutputHigh
()
;
/** Experimental method used for testing data sources that can deliver outputs.*/
virtual
void
setOutputLow
()
{}
virtual
void
setOutputLow
()
;
ScopedPointer
<
DataBuffer
>
dataBuffer
;
...
...
@@ -91,16 +91,10 @@ public:
virtual
int
getNumHeadstageOutputs
()
=
0
;
/** Returns the number of continuous aux channels the data source can provide.*/
virtual
int
getNumAuxOutputs
()
{
return
0
;
}
virtual
int
getNumAuxOutputs
();
/** Returns the number of continuous ADC channels the data source can provide.*/
virtual
int
getNumAdcOutputs
()
{
return
0
;
}
virtual
int
getNumAdcOutputs
();
/** Returns the sample rate of the data source.*/
virtual
float
getSampleRate
()
=
0
;
...
...
@@ -109,55 +103,34 @@ public:
virtual
float
getBitVolts
(
Channel
*
chan
)
=
0
;
/** Returns the number of event channels of the data source.*/
virtual
int
getNumEventChannels
()
{
return
0
;
}
virtual
int
getNumEventChannels
();
/** Notifies if the device is ready for acquisition */
virtual
bool
isReady
()
{
return
true
;
}
virtual
int
modifyChannelName
(
int
channel
,
String
newName
)
{
return
-
1
;
}
virtual
int
modifyChannelGain
(
int
channel
,
float
gain
)
{
return
-
1
;
}
virtual
bool
isReady
();
virtual
int
modifyChannelName
(
int
channel
,
String
newName
);
virtual
int
modifyChannelGain
(
int
channel
,
float
gain
);
/* virtual void getChannelsInfo(StringArray &Names, Array<ChannelType> &type, Array<int> &stream, Array<int> &originalChannelNumber, Array<float> &gains)
{
}*/
virtual
void
getEventChannelNames
(
StringArray
&
names
)
{
}
virtual
void
getEventChannelNames
(
StringArray
&
names
);
virtual
bool
usesCustomNames
()
{
return
false
;
}
virtual
bool
usesCustomNames
();
/** Changes the names of channels, if the thread needs custom names. */
void
updateChannels
();
/** Returns a pointer to the data input device, in case other processors
need to communicate with it.*/
virtual
void
*
getDevice
()
{
return
0
;
}
virtual
void
*
getDevice
();
void
getChannelInfo
(
Array
<
ChannelCustomInfo
>&
infoArray
);
protected:
virtual
void
setDefaultChannelNames
()
{
}
virtual
void
setDefaultChannelNames
();
SourceNode
*
sn
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment