I'm about to add features to convert files to documents and vice versa, so I'll need to add some design patterns to come up concrete types based off their family types.
I made a diagram to depict how this new change works:
To put it another way, this change aims to provide a way to select between different file kinds, such as images, documents, videos, etc.
Today, there's only support for images. Document support will be added in upcoming Pull Requests.
Type of change
Please delete options that are not relevant.
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update
How Has This Been Tested?
I've added tests to validate the new behavior.
Checklist:
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have checked my code and corrected any misspellings
Description
I'm about to add features to convert files to documents and vice versa, so I'll need to add some design patterns to come up concrete types based off their family types.
I made a diagram to depict how this new change works:![File_Converter_Abstract_Factory](https://github.com/danvergara/morphos/assets/12239167/30d3bf60-e7c9-4f6b-961f-c70b7a5f3108)
To put it another way, this change aims to provide a way to select between different file kinds, such as images, documents, videos, etc.![Screenshot from 2023-12-10 16-50-09](https://github.com/danvergara/morphos/assets/12239167/62613e65-6986-49d3-8cf5-33483723be78)
Today, there's only support for images. Document support will be added in upcoming Pull Requests.
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
I've added tests to validate the new behavior.
Checklist: