Boost logo

Boost :

From: Andrey Semashev (andrey.semashev_at_[hidden])
Date: 2008-08-27 09:15:56

andrea carbone wrote:
> Dear Andrey,
> yes this is what I have in mind.
> I will apply for the virtual base solution.
> I will do some test .... but ..I have a doubt: does it need to be a
> singleton instance?
> Or a plain pointer to an object instance will do the trick as well?

It depends on what you want to achieve. If the FSM models some kind of
session and there can be multiple sessions attached to a single sensor,
then, obviously, the FSM should not be a singleton. If the FSM models
the sensor itself, then it should be a singleton as well. However, in
the latter case I would made the sensor a member of the FSM.

Boost list run by bdawes at, gregod at, cpdaniel at, john at