Skip to content

another cpp event publisher and listener using pure cpp & observer & service locator design patter

License

Notifications You must be signed in to change notification settings

gaoze1998/cpp-event

Repository files navigation

cpp event

demo

mkdir build
cd build
cmake ..
make
./cpp-event

project file explained

main.cpp: demo app

event.hpp: Even structure defination

listener.hpp: Listener interface defination

publisher.hpp & publisher.cpp: Publisher class defination

publisherfactory.hpp & publisherfactory.cpp: provide a static method to get a singleton publisher

how to use

you can directly copy all cpp & hpp file to your project; add them to source file.

About

another cpp event publisher and listener using pure cpp & observer & service locator design patter

Topics

Resources

License

Stars

Watchers

Forks