-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ISSUE #111][COMPONENTS] Introduce components architecture in the pro…
…ject 1. [x] Have you followed the guidelines in our [Contributing document](../blob/master/CONTRIBUTING.md)? 2. [x] Have you checked to ensure there aren't other open [Pull Requests](../pulls) for the same update/change? 3. [x] Have you built the project, and performed manual testing of your functionality for all supported platforms - Linux and Windows? 4. [x] Is your change backward-compatible with the previous version of the plugin? >>> Change description: - Creation of the separate component from the analyzer folder of the project - Adaptation of the project - Update of the class diagrams - Update of README >>> Verification criteria: - Manually checked on the Windows platform - All sanity checks on Git Hub were passed
- Loading branch information
Showing
66 changed files
with
1,812 additions
and
1,000 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DMA_add_subdirectory_with_clang_tidy(analyzer) |
1 change: 1 addition & 0 deletions
1
dltmessageanalyzerplugin/src/components/analyzer/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DMA_add_subdirectory_with_clang_tidy(src) |
24 changes: 24 additions & 0 deletions
24
dltmessageanalyzerplugin/src/components/analyzer/api/CAnalyzerComponent.hpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#pragma once | ||
|
||
#include "memory" | ||
|
||
#include "dma/component/IComponent.hpp" | ||
|
||
#include "components/analyzer/api/IDLTMessageAnalyzerController.hpp" | ||
|
||
class CAnalyzerComponent : public DMA::IComponent | ||
{ | ||
public: | ||
|
||
CAnalyzerComponent(); | ||
std::shared_ptr<IDLTMessageAnalyzerController> getAnalyzerController() const; | ||
|
||
virtual const char* getName() const override; | ||
|
||
protected: | ||
virtual DMA::tSyncInitOperationResult init() override; | ||
virtual DMA::tSyncInitOperationResult shutdown() override; | ||
|
||
private: | ||
std::shared_ptr<IDLTMessageAnalyzerController> mpMessageAnalyzerController; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
dltmessageanalyzerplugin/src/components/analyzer/doc/doc.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[**Go to the previous page**](../../../../../md/dev_docs/dev_docs.md) | ||
|
||
---- | ||
|
||
# DMA_Analyzer | ||
|
||
## Standalone package API diagram | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_Analyzer_API_standalone.svg) | ||
|
||
## Package API diagram with the first-level dependencies | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_Analyzer_API.svg) | ||
|
||
## Standalone package diagram | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_Analyzer_standalone.svg) | ||
|
||
## Package diagram with the first-level dependencies | ||
|
||
![Class diagram with dependencies](../../../../../md/dev_docs/puml/DMA_Analyzer.svg) | ||
|
||
---- | ||
|
||
[**Go to the previous page**](../../../../../md/dev_docs/dev_docs.md) |
60 changes: 60 additions & 0 deletions
60
dltmessageanalyzerplugin/src/components/analyzer/src/CAnalyzerComponent.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
#include "../api/CAnalyzerComponent.hpp" | ||
|
||
#include "CContinuousAnalyzer.hpp" | ||
#include "CMTAnalyzer.hpp" | ||
|
||
#include "DMA_Plantuml.hpp" | ||
|
||
#include "dma/base/ForceLink.hpp" | ||
|
||
CAnalyzerComponent::CAnalyzerComponent(): | ||
mpMessageAnalyzerController(nullptr) | ||
{ | ||
// force linkage references in order to have consistent diagrams | ||
DMA_FORCE_LINK_REFERENCE(INamedObject) | ||
} | ||
|
||
const char* CAnalyzerComponent::getName() const | ||
{ | ||
return "CAnalyzerComponent"; | ||
} | ||
|
||
DMA::tSyncInitOperationResult CAnalyzerComponent::init() | ||
{ | ||
DMA::tSyncInitOperationResult result; | ||
|
||
try | ||
{ | ||
auto pMTController = IDLTMessageAnalyzerController::createInstance<CMTAnalyzer>(); | ||
mpMessageAnalyzerController = IDLTMessageAnalyzerController::createInstance<CContinuousAnalyzer>(pMTController); | ||
|
||
result.bIsOperationSuccessful = true; | ||
result.returnCode = 0; | ||
} | ||
catch (...) | ||
{} | ||
|
||
return result; | ||
} | ||
|
||
DMA::tSyncInitOperationResult CAnalyzerComponent::shutdown() | ||
{ | ||
DMA::tSyncInitOperationResult result; | ||
result.bIsOperationSuccessful = true; | ||
result.returnCode = 0; | ||
return result; | ||
} | ||
|
||
std::shared_ptr<IDLTMessageAnalyzerController> | ||
CAnalyzerComponent::getAnalyzerController() const | ||
{ | ||
return mpMessageAnalyzerController; | ||
} | ||
|
||
PUML_PACKAGE_BEGIN(DMA_Analyzer) | ||
PUML_CLASS_BEGIN(CAnalyzerComponent) | ||
PUML_INHERITANCE_CHECKED(DMA::IComponent, implements) | ||
PUML_COMPOSITION_DEPENDENCY_CHECKED(CContinuousAnalyzer, 1, 1, contains) | ||
PUML_USE_DEPENDENCY_CHECKED(CMTAnalyzer, 1, 1, creates and feeds into CContinuousAnalyzer) | ||
PUML_CLASS_END() | ||
PUML_PACKAGE_END() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
dltmessageanalyzerplugin/src/components/analyzer/src/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
qt5_wrap_cpp(PROCESSED_MOCS | ||
../api/IDLTMessageAnalyzerControllerConsumer.hpp | ||
../api/IDLTMessageAnalyzerController.hpp) | ||
|
||
add_library(DMA_analyzer STATIC | ||
IDLTMessageAnalyzerController.cpp | ||
IDLTMessageAnalyzerControllerConsumer.cpp | ||
CMTAnalyzer.cpp | ||
CContinuousAnalyzer.cpp | ||
CDLTRegexAnalyzerWorker.cpp | ||
CAnalyzerComponent.cpp | ||
${PROCESSED_MOCS} | ||
) | ||
|
||
################### QT #################################### | ||
target_link_libraries(DMA_analyzer PUBLIC qdlt Qt5::Widgets DMA_framework_base DMA_framework_component) | ||
################### QT ( END ) ############################ |
Oops, something went wrong.