VEX V5 Event

How to declare a “event” in the “h” file?and define the event in the “cpp” file, and in the main function register it?