Relacs Core Library  0.9.8
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
SaveFiles::RelacsFiles Class Reference

#include <savefiles.h>

Collaboration diagram for SaveFiles::RelacsFiles:
Collaboration graph
[legend]

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< TraceFileTraceFiles
 
deque< EventFileEventFiles
 
TableKey StimulusKey
 

Detailed Description

Write recorded data and metadata in native RELACS format.

Constructor & Destructor Documentation

RelacsFiles ( void  )

Member Function Documentation

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 writeEvents ( const InList IL,
const EventList EL,
bool  stimulus 
)

Write events to files.

See Also
saveTraces()

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 
)
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 
)

Close all files.

Referenced by SaveFiles::closeFiles().

void openTraceFiles ( const InList IL,
SaveFiles save 
)
protected

Open and initialize the files holding the traces from the analog input channels.

References SaveFiles::openFile(), SaveFiles::SaveTrace, and InList::size().

void openEventFiles ( const EventList EL,
SaveFiles save 
)
protected

Open and initialize the files recording the event times.

References EventList::clear(), Str::lower(), SaveFiles::openFile(), SaveFiles::SaveTrace, and EventList::size().

void openStimulusFiles ( const InList IL,
const EventList EL,
const Options data,
const Acquire acquire,
SaveFiles save 
)
protected

Member Data Documentation

ofstream* SF
protected

File with stimuli and indices to traces and events.

Referenced by SaveFiles::RelacsFiles::RelacsFiles().

ofstream* SDF
protected

File with stimulus descriptions.

Referenced by SaveFiles::RelacsFiles::RelacsFiles().

deque< TraceFile > TraceFiles
protected

files for all voltage traces.

Referenced by SaveFiles::RelacsFiles::RelacsFiles().

deque< EventFile > EventFiles
protected
TableKey StimulusKey
protected

The documentation for this class was generated from the following files: