From: Markus R. <rol...@un...> - 2008-04-13 17:53:17
|
Hi, Hedayat Vatankhah wrote: > But (well, I wonder if I'm getting too sensitive about this :( ), it > might be better to find a way to avoid the overhead of calling a virtual > function?! (Sorry again, I think I'm going too far in this direction! > Is it really a overhead which I should think about?) I think this is a quite light weight solution and has the benefit that the syntax stays the same, so you just write GetLog() and receive the correct LogServer instance. If we install multiple LogServer instances there has to be a way to get the correct one. Hiding this behind one standard function call allows use to keep this logic in one place and change our minds later what LogServer instance we use and where to install them. cheers, Markus |