#include <PatternManager.h>
Public Member Functions | |
| bool | addPattern (QString fileName) |
| bool | deletePattern (unsigned int pattID) |
| PatternManager (DBInterface *) | |
| ~PatternManager () | |
Private Member Functions | |
| PatternManager | operator= (const PatternManager &) |
| bool | patternAlreadyStored (QString) |
| PatternManager (const PatternManager &) | |
| void | storePatternCount (unsigned int patternGrpID, int patternCount) |
| bool | storePatternData (unsigned int, QString) |
| int | storePatternDescription (QString description, unsigned short patternType, unsigned int width, unsigned int length, QString fileName) |
Private Attributes | |
| DBInterface * | patternDBInterface |
Definition at line 39 of file PatternManager.h.
|
|
Constructor. Definition at line 41 of file PatternManager.cpp. References patternDBInterface. |
|
|
Destructor. Definition at line 48 of file PatternManager.cpp. |
|
|
Declare copy constructor private so it cannot be used inadvertently. |
|
|
Loads test spiking patterns into database. These are specified as a qstringlist of absolute file locations. Definition at line 61 of file PatternManager.cpp. References storePatternCount(), storePatternData(), and storePatternDescription(). Referenced by PatternDialog::addPattern(). |
|
|
Deletes the specified pattern from the database. NOTE Exception handling should be done by the invoking method. Definition at line 179 of file PatternManager.cpp. References patternDBInterface. Referenced by PatternDialog::deletePattern(). |
|
|
Declare assignment private so it cannot be used inadvertently. |
|
|
Returns true if the pattern has already been stored in the database. Definition at line 212 of file PatternManager.cpp. References patternDBInterface. Referenced by storePatternDescription(). |
|
||||||||||||
|
Stores a count of the number of patterns in the database to save counting the number of rows every time the application starts up. Definition at line 244 of file PatternManager.cpp. References patternDBInterface. Referenced by addPattern(). |
|
||||||||||||
|
Stores the pattern data. Definition at line 256 of file PatternManager.cpp. References patternDBInterface. Referenced by addPattern(). |
|
||||||||||||||||||||||||
|
Stores a description of the pattern when the pattern is being loaded. Should be called before storing the data. Definition at line 282 of file PatternManager.cpp. References patternAlreadyStored(), and patternDBInterface. Referenced by addPattern(). |
|
|
Reference to class for handling database. Definition at line 51 of file PatternManager.h. Referenced by deletePattern(), patternAlreadyStored(), PatternManager(), storePatternCount(), storePatternData(), and storePatternDescription(). |
1.4.4