SpikeStream Library  0.2
spikestream::AnalysisDao Class Reference

#include <AnalysisDao.h>

Inheritance diagram for spikestream::AnalysisDao:
spikestream::AbstractDao

List of all members.

Public Member Functions

 AnalysisDao (const DBInfo &dbInfo)
 AnalysisDao ()
virtual ~AnalysisDao ()
void addAnalysis (AnalysisInfo &analysisInfo)
void deleteAnalysis (unsigned int analysisID)
void deleteAllAnalyses ()
QList< AnalysisInfogetAnalysesInfo (unsigned int networkID, unsigned int archiveID, unsigned int analysisType)
bool networkHasAnalyses (unsigned networkID)
void updateDescription (unsigned int analysisID, const QString &description)

Detailed Description

Data access object for the analysis database

Definition at line 12 of file AnalysisDao.h.


Constructor & Destructor Documentation

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.

Destructor

Definition at line 24 of file AnalysisDao.cpp.


Member Function Documentation

void AnalysisDao::addAnalysis ( AnalysisInfo analysisInfo)

Adds the specified analysis to the database

Definition at line 33 of file AnalysisDao.cpp.

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.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Defines