Skip to content
Snippets Groups Projects
Commit 2fba7cc7 authored by jsiegle's avatar jsiegle
Browse files

Get it to compile

parent 02501ebe
No related branches found
No related tags found
No related merge requests found
......@@ -35,15 +35,17 @@ Channel::Channel(GenericProcessor* p, int n) : num(n), eventType(0), processor(p
Channel::Channel(const Channel& ch)
{
processor = ch.processor;
isEventChannel = ch.isEventChannel;
isEnabled = ch.isEnabled;
isMonitored = false;
type = ch.type;
isADCchannel = ch.isADCchannel;
sampleRate = ch.sampleRate;
bitVolts = ch.bitVolts;
name = ch.name;
eventType = ch.eventType;
nodeId = ch.nodeId;
num = ch.num;
originalStream = ch.originalStream;
originalChannel = ch.originalChannel;
......
......@@ -104,13 +104,17 @@ public:
/** Pointer to the channel's parent processor. */
GenericProcessor* processor;
int originalStream;
int originalChannel;
// crucial information:
float sampleRate;
channelType type;
// boolean values:
// boolean values:
bool isEventChannel;
bool isADCchannel;
bool isMonitored;
bool isEnabled;
......
......@@ -212,31 +212,31 @@ void RecordNode::addInputChannel(GenericProcessor* sourceNode, int chan)
void RecordNode::updateFileName(Channel* ch)
{
String filename = rootFolder.getFullPathName();
filename += rootFolder.separatorString;
// String filename = rootFolder.getFullPathName();
// filename += rootFolder.separatorString;
if (!ch->getType() == EVENT_CHANNEL)
{
filename += ch->nodeId;
filename += "_";
filename += ch->name;
// if (!ch->getType() == EVENT_CHANNEL)
// {
// filename += ch->nodeId;
// filename += "_";
// filename += ch->name;
if (appendTrialNum)
{
filename += "_";
filename += trialNum;
}
// if (appendTrialNum)
// {
// filename += "_";
// filename += trialNum;
// }
filename += ".continuous";
}
else
{
filename += "all_channels.events";
}
// filename += ".continuous";
// }
// else
// {
// filename += "all_channels.events";
// }
ch->filename = filename;
ch->file = 0;
// ch->filename = filename;
// ch->file = 0;
//std::cout << "Updating " << filename << std::endl;
......
......@@ -125,6 +125,13 @@ public:
return rootFolder;
}
void appendTrialNumber(bool);
void updateTrialNumber();
/** Generate filename for a given channel */
void updateFileName(Channel* ch);
/** Adds a Record Engine to use
*/
void registerRecordEngine(RecordEngine* engine);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment