As you know, differenct vendor may have differenct name of data field. Although the name is difference, the data struct is almost the same. For example,
struct s1 { int s1Price, int s1Volume }
struct s2 { int s2Price, int s2Volume }
Like stock market data, the data would sent to program automatically, and the program just receives the data and then processes it.
I want to design a program which can easily change to other vendor's data struct.
If I develop program with s1, sometime later, I want to change to s2 with smallest change.
I hope you can get my point.
Could you give me any advice ? Any design patter or your exprience ?
Aucun commentaire:
Enregistrer un commentaire