Add cpp templates for events

Change-Id: I21697be4c9ca13703b31283bf43d33482970a23d