Relacs
0.9.8
|
#include <savefiles.h>
Public Member Functions | |
ODMLFiles (void) | |
bool | open (const string &path, SaveFiles *save, const AllDevices *devices) |
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 | close (const string &path, const deque< string > &reprofiles, MetaData &metadata) |
Protected Attributes | |
ofstream * | XF |
ofstream * | XSF |
bool | DatasetOpen |
Write metadata into ODML files.
ODMLFiles | ( | void | ) |
bool open | ( | const string & | path, |
SaveFiles * | save, | ||
const AllDevices * | devices | ||
) |
Open all necessary files.
Open and initialize the XML file that contains all information.
References Device::AnalogInputType, Device::AnalogOutputType, Device::AttenuateType, Device::deviceType(), Device::deviceTypeStr(), Device::DigitalIOType, Options::erase(), Options::FirstOnly, Device::info(), Options::name(), Str::name(), SaveFiles::openFile(), Str::preventedSlash(), Options::saveXML(), and DeviceList< T, PluginID >::size().
Referenced by SaveFiles::createODMLFiles().
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::append(), Options::FirstOnly, Options::name(), Options::newSection(), Acquire::outTracesSize(), Options::saveXML(), and Options::setInclude().
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::DontCloseSection, Options::FirstOnly, Parameter::saveXML(), and Options::saveXML().
Referenced by SaveFiles::writeRePro().
void close | ( | const string & | path, |
const deque< string > & | reprofiles, | ||
MetaData & | metadata | ||
) |
Close all files.
References Options::name(), Str::name(), Str::preventedSlash(), MetaData::saveXML(), and Parameter::saveXML().
Referenced by SaveFiles::closeFiles().
|
protected |
XML file containing all data.
|
protected |
XML file containing stimulus descriptions.
|
protected |