Add preliminaries for signal viewer, update version number, switch dbc handler to singleton pattern, changes to DBC attributes

This commit is contained in:
Collin Kidder
2017-01-15 16:30:08 -05:00
parent d94c823216
commit 74f6d7f947
21 changed files with 236 additions and 55 deletions
+6 -3
View File
@@ -10,8 +10,6 @@
* Finish coding up the decoupled design
*
*/
class DBCSignalHandler: public QObject
{
Q_OBJECT
@@ -67,10 +65,11 @@ public:
DBCMessageHandler *messageHandler;
QList<DBC_NODE> dbc_nodes;
QList<DBC_ATTRIBUTE> dbc_attributes;
private:
QString fileName;
QString filePath;
int assocBuses; //-1 = all buses, 0 = first bus, 1 = second bus
int assocBuses; //-1 = all buses, 0 = first bus, 1 = second bus, etc.
};
class DBCHandler: public QObject
@@ -87,9 +86,13 @@ public:
DBCFile* getFileByIdx(int idx);
DBCFile* getFileByName(QString name);
int createBlankFile();
static DBCHandler *getReference();
private:
QList<DBCFile> loadedFiles;
DBCHandler();
static DBCHandler *instance;
};
#endif // DBCHANDLER_H