Hi guys,
One of my client ask me to build a version of our software that used CVB and is in a production computer “online”, to be use “offline” with a portable computer where CVB is not installed, to be able to work on recorded image.
So, we want to build a version of our software where all call of the CVB tools are replace with a “fake” camera class.
To do so, we build our own camera class that encapsulate CVB tools. So we can switch between a false camera class and this class easily.
For now, the best solution for us is to create two version of the software, one who use CVB, one whe do not use CVB. But as a developer, I do not want this solution because it can create problems…
My question is : is there a way, in modern C++, to manage the use of CVB in our code, so that we can detect if cvb is installed and use the true cvb camera class or the false camera class that you know ? Or any other ideas ? I know that we can use function pointer to do that, but I want to avoid it.
Thanks,