25 lines
		
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			418 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef EVENTIDS_H
 | |
| #define EVENTIDS_H
 | |
| 
 | |
| /**
 | |
|  * This class is responsible to distribute to every event
 | |
|  * used in the project a different event id.
 | |
|  *
 | |
|  * Only values grater than zero should be used
 | |
|  *
 | |
|  */
 | |
| class EventId
 | |
| {
 | |
| public:
 | |
| 	/**
 | |
| 	 * The event identifiers available
 | |
| 	 */
 | |
| 	typedef enum
 | |
| 	{
 | |
| 		Unknown = 0,		///< Unknown event. Must not be used.
 | |
| 		evRestart = 1		///< Restart event
 | |
| 	} eEventId;
 | |
| };
 | |
| 
 | |
| #endif // EVENTIDS_H
 |