I have a certain architecture in my programm and I’m wondering if someone have some clue to help me.
I have 5 classes.
A manager class, which contains 3 lists, a Scenario list, a FileContent list and a FileOperation list.
A scenario class, wich contains a Categorie list
A categorie class
A fileContent class
A fileOperation class, which does inherit from fileContent
There is some flaw about the inheritage of FileOperation I guess, but it’s not what’s troubling me right now
My class FileOperation posses a QList<custom_hash> that i’d like to share/send to the classe Categorie or Scenario.
I’m wondering what the best approch would it be ? An ensemble of getter/setter, wich would pass the information from FileOperation to -> Manager to -> Scenario to -> Categorie (with some parameters all along)
Or perhaps a simplier signals/slots architecture between FileOperation and Scenario, or FileOperation and Manager or ..?
Hopes to be clear ! I’ll attach an image of my current architure in UML.
I’m going to create some signals/slots wich is probably the best option, but I have been reorganizing this code for a while now and I think another point of view would be a good thing
If anyone have some idea or advice, it’s cool 😉 !
(to the regular hater who automatically downvote and feel superior, welcome my friend, you are a piece of sh*t)