Relacs Core Library
0.9.8
|
#include <savefiles.h>
Classes | |
struct | EventFile |
struct | TraceFile |
Public Member Functions | |
RelacsFiles (void) | |
bool | open (const InList &IL, const EventList &EL, const Options &data, const Acquire *acquire, const string &path, SaveFiles *save, const AllDevices *devices) |
void | resetIndex (const InList &IL) |
void | resetIndex (const EventList &EL) |
void | writeTraces (const InList &IL, bool stimulus) |
void | writeEvents (const InList &IL, const EventList &EL, bool stimulus) |
void | writeStimulus (const InList &IL, const EventList &EL, const deque< OutDataInfo > &stimuliinfo, const deque< bool > &newstimuli, const Options &data, const deque< Options > &stimuliref, int *stimulusindex, double sessiontime, const string &reproname, const Acquire *acquire) |
void | writeRePro (const Options &reproinfo, const deque< string > &reprofiles, const InList &IL, const EventList &EL, const Options &data, double sessiontime) |
void | traceSignalIndices (deque< int > &traceindex) |
void | eventsSignalIndices (deque< int > &eventsindex) |
void | close (const string &path, const deque< string > &reprofiles, MetaData &metadata) |
Protected Member Functions | |
void | openTraceFiles (const InList &IL, SaveFiles *save) |
void | openEventFiles (const EventList &EL, SaveFiles *save) |
void | openStimulusFiles (const InList &IL, const EventList &EL, const Options &data, const Acquire *acquire, SaveFiles *save) |
Protected Attributes | |
ofstream * | SF |
ofstream * | SDF |
deque< TraceFile > | TraceFiles |
deque< EventFile > | EventFiles |
TableKey | StimulusKey |
Write recorded data and metadata in native RELACS format.
RelacsFiles | ( | void | ) |
bool open | ( | const InList & | IL, |
const EventList & | EL, | ||
const Options & | data, | ||
const Acquire * | acquire, | ||
const string & | path, | ||
SaveFiles * | save, | ||
const AllDevices * | devices | ||
) |
Open all necessary files.
References DataIndex::addSession(), and SaveFiles::DI.
Referenced by SaveFiles::createRelacsFiles().
void resetIndex | ( | const InList & | IL | ) |
Set index for traces to current size of each trace in IL.
Referenced by SaveFiles::writeToggle().
void resetIndex | ( | const EventList & | EL | ) |
Set index for events to current size of each event list in EL.
void writeTraces | ( | const InList & | IL, |
bool | stimulus | ||
) |
Write data traces to files.
Referenced by SaveFiles::writeTraces().
void writeStimulus | ( | const InList & | IL, |
const EventList & | EL, | ||
const deque< OutDataInfo > & | stimuliinfo, | ||
const deque< bool > & | newstimuli, | ||
const Options & | data, | ||
const deque< Options > & | stimuliref, | ||
int * | stimulusindex, | ||
double | sessiontime, | ||
const string & | reproname, | ||
const Acquire * | acquire | ||
) |
Write pending stimuli to files.
References Attenuate::frequencyName(), name, Acquire::outTraceAttenuate(), Acquire::outTracesSize(), relacs::RecordingEventMode, relacs::RestartEventMode, Attenuate::save(), SaveFiles::SaveMeanQuality, and relacs::StimulusEventMode.
Referenced by SaveFiles::writeStimulus().
void writeRePro | ( | const Options & | reproinfo, |
const deque< string > & | reprofiles, | ||
const InList & | IL, | ||
const EventList & | EL, | ||
const Options & | data, | ||
double | sessiontime | ||
) |
Write information about a RePro to files.
References relacs::RecordingEventMode, relacs::RestartEventMode, SaveFiles::SaveMeanQuality, and relacs::StimulusEventMode.
Referenced by SaveFiles::writeRePro().
void traceSignalIndices | ( | deque< int > & | traceindex | ) |
Referenced by SaveFiles::writeStimulus().
void eventsSignalIndices | ( | deque< int > & | eventsindex | ) |
void close | ( | const string & | path, |
const deque< string > & | reprofiles, | ||
MetaData & | metadata | ||
) |
Close all files.
Referenced by SaveFiles::closeFiles().
Open and initialize the files holding the traces from the analog input channels.
References SaveFiles::openFile(), SaveFiles::SaveTrace, and InList::size().
Open and initialize the files recording the event times.
References EventList::clear(), Str::lower(), SaveFiles::openFile(), SaveFiles::SaveTrace, and EventList::size().
|
protected |
Open and initialize the stimulus file that contains indices to he traces and event files.
References Attenuate::frequencyFormat(), Attenuate::frequencyName(), Attenuate::frequencyUnit(), Attenuate::intensityFormat(), Attenuate::intensityName(), Attenuate::intensityUnit(), SaveFiles::openFile(), Acquire::outTrace(), Acquire::outTraceAttenuate(), Acquire::outTraceName(), Acquire::outTracesSize(), relacs::RecordingEventMode, relacs::RestartEventMode, SaveFiles::SaveMeanQuality, and relacs::StimulusEventMode.
|
protected |
File with stimuli and indices to traces and events.
Referenced by SaveFiles::RelacsFiles::RelacsFiles().
|
protected |
File with stimulus descriptions.
Referenced by SaveFiles::RelacsFiles::RelacsFiles().
|
protected |
files for all voltage traces.
Referenced by SaveFiles::RelacsFiles::RelacsFiles().
|
protected |
Referenced by SaveFiles::RelacsFiles::RelacsFiles().
|
protected |
Referenced by SaveFiles::RelacsFiles::RelacsFiles().