Now I have a class A.
I need to procee A with different method on the basis of some attributes of A. for example
And I have five method,
A process1(A&)
A process2(A&)
A process3(A&)
A process4(A&)
A process5(A&)
when A attribute key is "a", I need to process A with {process1, process2, process5};
when A attribute key is "b", I need to process A with {process1, process2};
when A attribute key is "e", I need to process A with {process1, process3, process5};
when A attribute key is "f", I need to process A with {process1, process4, process5};
And I have a config file to record these rules.
So I want to know which design
pattern is suit my question? I want to write elegant program ^__^
Thanks very much.