ActiveObject implementation in c++