SpikeStream Library  0.2
spikestream::ArchiveDao Class Reference

#include <ArchiveDao.h>

Inheritance diagram for spikestream::ArchiveDao:
spikestream::AbstractDao

List of all members.

Public Member Functions

 ArchiveDao (const DBInfo &dbInfo)
virtual ~ArchiveDao ()
void addArchive (ArchiveInfo &archiveInfo)
void addArchiveData (unsigned int archiveID, unsigned int timeStep, const QString &firingNeuronString)
void addArchiveData (unsigned int archiveID, unsigned int timeStep, const QList< unsigned > &firingNeuronList)
void deleteArchive (unsigned int archiveID)
void deleteAllArchives ()
QList< ArchiveInfogetArchivesInfo (unsigned int networkID)
int getArchiveSize (unsigned int archiveID)
QList< unsigned > getFiringNeuronIDs (unsigned int archiveID, unsigned int timeStep)
unsigned int getMaxTimeStep (unsigned int archiveID)
unsigned int getMinTimeStep (unsigned int archiveID)
bool networkHasArchives (unsigned int networkID)
void setArchiveProperties (unsigned archiveID, const QString &description)

Detailed Description

Data access object for the SpikeStreamArchive database

Definition at line 13 of file ArchiveDao.h.


Constructor & Destructor Documentation

ArchiveDao::ArchiveDao ( const DBInfo dbInfo)

Constructor

Definition at line 8 of file ArchiveDao.cpp.

ArchiveDao::~ArchiveDao ( ) [virtual]

Destructor

Definition at line 13 of file ArchiveDao.cpp.


Member Function Documentation

void ArchiveDao::addArchive ( ArchiveInfo archInfo)

Adds the archive with the specified ID

Definition at line 22 of file ArchiveDao.cpp.

void ArchiveDao::addArchiveData ( unsigned int  archiveID,
unsigned int  timeStep,
const QString &  firingNeuronString 
)

Adds data to the archive with the specified ID.

Definition at line 40 of file ArchiveDao.cpp.

void ArchiveDao::addArchiveData ( unsigned int  archiveID,
unsigned int  timeStep,
const QList< unsigned > &  firingNeuronList 
)

Adds data to the archive with the specified ID.

Definition at line 46 of file ArchiveDao.cpp.

Deletes all archives in the database.

Definition at line 80 of file ArchiveDao.cpp.

void ArchiveDao::deleteArchive ( unsigned int  archiveID)

Deletes the archive with the specified ID

Definition at line 74 of file ArchiveDao.cpp.

QList< ArchiveInfo > ArchiveDao::getArchivesInfo ( unsigned int  networkID)

Returns a list of the archives in the database that are associated with the specified network.

Definition at line 86 of file ArchiveDao.cpp.

int ArchiveDao::getArchiveSize ( unsigned int  archiveID)

Returns the number of data rows in the specified archive

Definition at line 107 of file ArchiveDao.cpp.

QList< unsigned > ArchiveDao::getFiringNeuronIDs ( unsigned int  archiveID,
unsigned int  timeStep 
)

Returns a list of firing neuron IDs

Definition at line 135 of file ArchiveDao.cpp.

unsigned int ArchiveDao::getMaxTimeStep ( unsigned int  archiveID)

Returns the maximum time step in the archive

Definition at line 117 of file ArchiveDao.cpp.

unsigned int ArchiveDao::getMinTimeStep ( unsigned int  archiveID)

Returns the minimum time step in the archive

Definition at line 126 of file ArchiveDao.cpp.

bool ArchiveDao::networkHasArchives ( unsigned int  networkID)

Returns true if the network is associated with archives and is therefore uneditable

Definition at line 155 of file ArchiveDao.cpp.

void ArchiveDao::setArchiveProperties ( unsigned  archiveID,
const QString &  description 
)

Sets the archive's properties, currently just the description.

Definition at line 166 of file ArchiveDao.cpp.


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