Début de la ré-architecture

This commit is contained in:
2023-01-18 14:28:13 -05:00
parent 51fb065a42
commit 20e46bb60a
21 changed files with 2765 additions and 585 deletions
@@ -0,0 +1,6 @@
#include "CANDBMessage.h"
CCANDBMessage::CCANDBMessage()
{
}
@@ -0,0 +1,12 @@
#ifndef CANDBMESSAGE_H
#define CANDBMESSAGE_H
#include "CANDBSignal.h"
#include <QList>
class CCANDBMessage
{
public:
CCANDBMessage();
};
#endif // CANDBMESSAGE_H
@@ -0,0 +1,6 @@
#include "CANDBSignal.h"
CCANDBSignal::CCANDBSignal()
{
}
@@ -0,0 +1,11 @@
#ifndef CANDBSIGNAL_H
#define CANDBSIGNAL_H
class CCANDBSignal
{
public:
CCANDBSignal();
};
#endif // CANDBSIGNAL_H
+6
View File
@@ -0,0 +1,6 @@
#include "CANDevice.h"
CCANDevice::CCANDevice(QObject *parent)
{
}
+24
View File
@@ -0,0 +1,24 @@
#ifndef CANDEVICE_H
#define CANDEVICE_H
#include <QObject>
#include "CANAnalyzer.h"
#include "CANMessage.h"
#include "PCANInterface.h"
#include "CANDatabase.h"
#include <QList>
class CCANDevice : public CCANDatabase, public CCANAnalyzer
{
Q_OBJECT
public:
explicit CCANDevice(QObject *parent = 0);
CCANAnalyzer mCANAnalyzer;
signals:
public slots:
};
#endif // CANDEVICE_H
+10 -10
View File
@@ -18,18 +18,18 @@
COtarcikCan::COtarcikCan(QObject *parent) : QObject(parent)
{
mPCANInterface = new CPCANInterface;
mCANDatabase = new CCANDatabase;
mCANAnalyzer = new CCANAnalyzer(mPCANInterface);
// mPCANInterface = new CPCANInterface;
// mCANDatabase = new CCANDatabase;
// mCANAnalyzer = new CCANAnalyzer(mPCANInterface);
mCANAnalyzer->mProgramPtr = this;
//mCANAnalyzer->mProgramPtr = this;
}
COtarcikCan::~COtarcikCan()
{
delete mCANAnalyzer;
delete mPCANInterface;
delete mCANDatabase;
// delete mCANAnalyzer;
// delete mPCANInterface;
// delete mCANDatabase;
}
@@ -40,10 +40,10 @@ int COtarcikCan::Start()
CGeneralMessagesLogDispatcher::instance()->BindGuiPageHandle(mMainWindow.mGeneralStatusPage);
CGeneralMessagesLogDispatcher::instance()->Init();
mCANAnalyzer->Init(mPCANInterface,mCANDatabase);
// mCANAnalyzer->Init(mPCANInterface,mCANDatabase);
mCANDatabase->Init();
mCANDatabase->LoadDatabaseFile("");
// mCANDatabase->Init();
// mCANDatabase->LoadDatabaseFile("");
return 0;
+3 -3
View File
@@ -24,9 +24,9 @@ public:
private:
CCANAnalyzer *mCANAnalyzer;
CPCANInterface *mPCANInterface;
CCANDatabase *mCANDatabase;
// CCANAnalyzer *mCANAnalyzer;
// CPCANInterface *mPCANInterface;
// CCANDatabase *mCANDatabase;
signals: