I want to implement a class in c++ that has a callback.
So I think I need a method that has 2 arguments:
Also, look at the Observer Pattern and signals and slots . This extends to multiple subscribers.