A (Tiny) Framework for Event-driven models in C++