Relacs
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(), SaveFiles::DI, and Options::Options().
Referenced by SaveFiles::createRelacsFiles().
void resetIndex | ( | const InList & | IL | ) |
Set index for traces to current size of each trace in IL.
References Options::size().
Referenced by SaveFiles::writeToggle().
void resetIndex | ( | const EventList & | EL | ) |
Set index for events to current size of each event list in EL.
References Options::size().
void writeTraces | ( | const InList & | IL, |
bool | stimulus | ||
) |
Write data traces to files.
Referenced by SaveFiles::writeTraces().
Write events to files.
References Options::index(), and Options::size().
Referenced by SaveFiles::writeEvents().
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 Options::empty(), Attenuate::frequencyName(), Options::name(), Acquire::outTraceAttenuate(), Acquire::outTracesSize(), relacs::RecordingEventMode, relacs::RestartEventMode, Attenuate::save(), SaveFiles::SaveMeanQuality, Options::size(), 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 Options::empty(), Options::FirstOnly, Options::parameterSize(), relacs::RecordingEventMode, relacs::RestartEventMode, Options::save(), SaveFiles::SaveMeanQuality, Options::section(), Options::sectionsSize(), Options::setInteger(), Options::setNumber(), Options::setText(), Options::size(), 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 Options::format(), SaveFiles::openFile(), Str::resize(), 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 Parameter::addNumber(), Options::addNumber(), Parameter::addText(), Options::empty(), Options::format(), Attenuate::frequencyFormat(), Attenuate::frequencyName(), Attenuate::frequencyUnit(), Attenuate::intensityFormat(), Attenuate::intensityName(), Attenuate::intensityUnit(), Options::name(), SaveFiles::openFile(), Acquire::outTrace(), Acquire::outTraceAttenuate(), Acquire::outTraceName(), Acquire::outTracesSize(), Options::outUnit(), relacs::RecordingEventMode, relacs::RestartEventMode, SaveFiles::SaveMeanQuality, Options::size(), 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().