SpikeStream Library
0.2
|
00001 #ifndef ARCHIVEDAO_H 00002 #define ARCHIVEDAO_H 00003 00004 //SpikeStream includes 00005 #include "ArchiveInfo.h" 00006 #include "AbstractDao.h" 00007 #include "DBInfo.h" 00008 using namespace spikestream; 00009 00010 namespace spikestream { 00011 00013 class ArchiveDao : public AbstractDao { 00014 public: 00015 ArchiveDao(const DBInfo& dbInfo); 00016 virtual ~ArchiveDao(); 00017 00018 void addArchive(ArchiveInfo& archiveInfo); 00019 void addArchiveData(unsigned int archiveID, unsigned int timeStep, const QString& firingNeuronString); 00020 void addArchiveData(unsigned int archiveID, unsigned int timeStep, const QList<unsigned>& firingNeuronList);//UNTESTED 00021 void deleteArchive(unsigned int archiveID); 00022 void deleteAllArchives(); 00023 QList<ArchiveInfo> getArchivesInfo(unsigned int networkID); 00024 int getArchiveSize(unsigned int archiveID); 00025 QList<unsigned> getFiringNeuronIDs(unsigned int archiveID, unsigned int timeStep); 00026 unsigned int getMaxTimeStep(unsigned int archiveID); 00027 unsigned int getMinTimeStep(unsigned int archiveID); 00028 bool networkHasArchives(unsigned int networkID); 00029 void setArchiveProperties(unsigned archiveID, const QString& description);//UNTESTED 00030 }; 00031 00032 } 00033 00034 #endif//ARCHIVEDAO_H 00035