I'm writing a C++ application which handles different type of requests coming in from different services. One of the request is to take 3 different input objects, calculate/derive few additional attributes and make a new object (to send to a DB wrapper service)
Approach I took: Wrote a class which has few static methods, but no member variables. I call these methods in order, pass the 3 input objects and the one output object when calling each of these methods. By end of it, I have the object I need populated
I'm writing to check if there's a design pattern or standard way of doing this. Somehow having a class with just static methods is not appealing to me
Aucun commentaire:
Enregistrer un commentaire