my opinion

guest (guest)
several means 1-100(maybe it's wrong), everybody know
class BaseClient {}
class Client1:public BaseClient{}
class Client2:public BaseClient{}
class Client3:public BaseClient{}
...

void foo(BaseClient& b){}
maybe it defined in another class, you don't need modify it if you add a new client only

but, I hope to get a better way to implement it,

Actualy, I don't understand your story about name, what do you really want to do?
(#11924@0)
2000-10-24 -05:00

回到话题: I have several clients, there is a little bit difference among them, maybe I'll have more clients in future, how to design the architecture?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=11924