C++ framework for real-time simulation