Relacs
0.9.8
|
#include <dataindex.h>
Classes | |
class | DataItem |
Public Member Functions | |
DataIndex (void) | |
~DataIndex (void) | |
DataItem * | cells (void) |
void | addStimulus (const Options &signal, const deque< int > &traceindex, const deque< int > &eventsindex, double time) |
void | addRepro (const Options &repro) |
void | addSession (const string &path, const Options &data, int ntraces, int nevents) |
void | endSession (bool saved) |
void | loadDirectory (const string &dir) |
bool | empty (void) const |
int | size (void) const |
void | print (void) |
DataOverviewModel * | overviewModel (void) |
void | setOverviewView (QTreeView *view, DataBrowser *browser) |
DataDescriptionModel * | descriptionModel (void) |
void | setDescriptionView (QTreeView *view) |
Index to previously recorded data, repro, and stimuli.
This is the data model used by the DataBrowser class.
DataIndex | ( | void | ) |
~DataIndex | ( | void | ) |
References DataIndex::DataItem::clear().
|
inline |
Referenced by DataOverviewModel::hasChildren(), DataOverviewModel::index(), and DataOverviewModel::parent().
void addStimulus | ( | const Options & | signal, |
const deque< int > & | traceindex, | ||
const deque< int > & | eventsindex, | ||
double | time | ||
) |
References DataIndex::DataItem::addChild(), DataIndex::DataItem::back(), DataIndex::DataItem::empty(), DataIndex::print(), and Options::type().
Referenced by SaveFiles::customEvent().
void addRepro | ( | const Options & | repro | ) |
References DataIndex::DataItem::addChild(), DataIndex::DataItem::back(), DataIndex::DataItem::empty(), DataIndex::print(), and Options::text().
Referenced by SaveFiles::save().
void addSession | ( | const string & | path, |
const Options & | data, | ||
int | ntraces, | ||
int | nevents | ||
) |
References DataIndex::DataItem::addChild(), and DataIndex::print().
Referenced by SaveFiles::RelacsFiles::open().
void endSession | ( | bool | saved | ) |
References DataIndex::descriptionModel(), DataIndex::DataItem::pop(), DataIndex::print(), and DataDescriptionModel::setOptions().
Referenced by SaveFiles::completeFiles(), and SaveFiles::deleteFiles().
void loadDirectory | ( | const string & | dir | ) |
bool empty | ( | void | ) | const |
true
if no recording session is in the DataIndex. References DataIndex::DataItem::empty().
int size | ( | void | ) | const |
References DataIndex::DataItem::size().
Referenced by DataIndex::DataItem::child(), DataIndex::DataItem::index(), and DataOverviewModel::rowCount().
void print | ( | void | ) |
References DataIndex::DataItem::print().
Referenced by DataIndex::addRepro(), DataIndex::addSession(), DataIndex::addStimulus(), DataIndex::endSession(), and DataIndex::loadDirectory().
DataOverviewModel * overviewModel | ( | void | ) |
Referenced by DataBrowser::DataBrowser().
void setOverviewView | ( | QTreeView * | view, |
DataBrowser * | browser | ||
) |
Passes view and browser to the overviewModel().
References DataOverviewModel::setBrowser(), and DataOverviewModel::setTreeView().
Referenced by DataBrowser::DataBrowser().
DataDescriptionModel * descriptionModel | ( | void | ) |
Referenced by DataBrowser::DataBrowser(), DataIndex::endSession(), and DataOverviewModel::setDescription().
void setDescriptionView | ( | QTreeView * | view | ) |
Passes view to the descriptionModel().
References DataDescriptionModel::setTreeView().
Referenced by DataBrowser::DataBrowser().