Skip to content

30 correction de laffichage#33

Merged
maelemiel merged 8 commits intomainfrom
30-correction-de-laffichage
Mar 7, 2025
Merged

30 correction de laffichage#33
maelemiel merged 8 commits intomainfrom
30-correction-de-laffichage

Conversation

@SamGave07
Copy link
Collaborator

This pull request introduces a new utility function isTrueFalseComponent and integrates it into multiple parts of the codebase to improve the handling of true/false components. The most important changes include the addition of the utility function, its usage in the displayInputs method, and its integration into the OutputComponent class.

New Utility Function:

  • include/IComponent.hpp: Added the declaration of the isTrueFalseComponent function.
  • src/main.cpp: Implemented the isTrueFalseComponent function to check if a component is a TrueComponent or FalseComponent.

Code Integration:

  • src/Circuit.cpp: Updated the displayInputs method to use the isTrueFalseComponent function, ensuring true/false components are skipped appropriately.
  • src/specialComponents/Output.cpp: Modified the setLink method in OutputComponent to use the isTrueFalseComponent function, setting the state if the linked component is true/false.

@SamGave07 SamGave07 requested a review from maelemiel March 7, 2025 15:31
@SamGave07 SamGave07 self-assigned this Mar 7, 2025
Copy link
Contributor

@maelemiel maelemiel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proxy-image1

@maelemiel maelemiel merged commit a576079 into main Mar 7, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants