This is just as a code example for the future interviews. This is EventListener(like it is in c#) implemented in c++ .I'm using some c++11 features (like final), but you can easily remove them if you want. Check wiki-page to see usage.
Need to be done: thread-safe; safe dispose of the caller-object(which invoking a delegate); improve event-caller;
19.12.14 - added some improvements
Features
- c# events style
- Simple events creation
- Simple subscription / desubscription
- Easy Event Types creation
- support static or non member function
- Simple interface (EventHolder.h, EventListener.h, EventArgs.h)
Follow C++ EventListener (C# style)
Other Useful Business Software
Custom VMs From 1 to 96 vCPUs With 99.95% Uptime
Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of C++ EventListener (C# style)!