Observator Pattern in C++.