SpikeStream Library
0.2
|
#include <AnalysisDao.h>
Public Member Functions | |
AnalysisDao (const DBInfo &dbInfo) | |
AnalysisDao () | |
virtual | ~AnalysisDao () |
void | addAnalysis (AnalysisInfo &analysisInfo) |
void | deleteAnalysis (unsigned int analysisID) |
void | deleteAllAnalyses () |
QList< AnalysisInfo > | getAnalysesInfo (unsigned int networkID, unsigned int archiveID, unsigned int analysisType) |
bool | networkHasAnalyses (unsigned networkID) |
void | updateDescription (unsigned int analysisID, const QString &description) |
Data access object for the analysis database
Definition at line 12 of file AnalysisDao.h.
AnalysisDao::AnalysisDao | ( | const DBInfo & | dbInfo | ) |
Standard constructor
Definition at line 14 of file AnalysisDao.cpp.
Empty constructor for unit testing
Definition at line 19 of file AnalysisDao.cpp.
AnalysisDao::~AnalysisDao | ( | ) | [virtual] |
Destructor
Definition at line 24 of file AnalysisDao.cpp.
void AnalysisDao::addAnalysis | ( | AnalysisInfo & | analysisInfo | ) |
Adds the specified analysis to the database
Definition at line 33 of file AnalysisDao.cpp.
void AnalysisDao::deleteAllAnalyses | ( | ) |
Deletes all analyses from the SpikeStreamAnalysis database.
Definition at line 60 of file AnalysisDao.cpp.
void AnalysisDao::deleteAnalysis | ( | unsigned int | analysisID | ) |
Deletes the analysis with the specified ID. Does nothing if no analysis with this ID is in the database
Definition at line 54 of file AnalysisDao.cpp.
QList< AnalysisInfo > AnalysisDao::getAnalysesInfo | ( | unsigned int | networkID, |
unsigned int | archiveID, | ||
unsigned int | analysisType | ||
) |
Returns a list of information about analyses matching the network and archive ID
Definition at line 66 of file AnalysisDao.cpp.
bool AnalysisDao::networkHasAnalyses | ( | unsigned | networkID | ) |
Returns true if the network is associated with analyses and is therefore uneditable
Definition at line 101 of file AnalysisDao.cpp.
void AnalysisDao::updateDescription | ( | unsigned int | analysisID, |
const QString & | newDescription | ||
) |
Updates the analysis description
Definition at line 113 of file AnalysisDao.cpp.