S
softwareEngineer
Hi all,
my topic is relate on C++ (because the system under maintenance is wrote inC++) but my issue is more on design. Would be great any your feedback/suggestion.
I have two component, one (let´s call it A) manage the request (command) from external systems and another (let´s call it B) manage its own command.
Once A receive one command calls one method of class B.
Now I´d like to expose only one method from B (ProcessCommand) which accept a abstract class (ICommand). So B have to expose one method ProcessCommand, ICommand and all ConcreteCommand (derived by ICommand) that it manage.
What do you think ? there is a better way to do it ?
thanks.
Robbie.
my topic is relate on C++ (because the system under maintenance is wrote inC++) but my issue is more on design. Would be great any your feedback/suggestion.
I have two component, one (let´s call it A) manage the request (command) from external systems and another (let´s call it B) manage its own command.
Once A receive one command calls one method of class B.
Now I´d like to expose only one method from B (ProcessCommand) which accept a abstract class (ICommand). So B have to expose one method ProcessCommand, ICommand and all ConcreteCommand (derived by ICommand) that it manage.
What do you think ? there is a better way to do it ?
thanks.
Robbie.